magento2: Wrong tax is displayed in checkout for Virtual products
Under certain scenarios the tax displayed in checkout for a virtual product does not match the address selected by the billing method
Preconditions
- Magento 2.2.6-dev installed
– Updated(09/19/2019): Still actual on
2.3-develop– Updated(02/15/2021): Modified for similar issue on2.4-develop - Default Tax rates configured (typical of a clean installation)
- Addition of a Tax Rule that enables those rates

- A virtual product created with price point $10
Steps to reproduce
- Create a customer account
- Create a default billing & shipping address in New York, such as: 123 Main St Flushing, NY 11354
- Save
- Browse to category to add Virtual product to cart
- Proceed to checkout
- Note sales tax of $0.84
- Click “Edit” under the billing address
- Click “Update”
- Press back till you are no longer in checkout
- Go to customer account page
- Edit Address, set it to an address in California such as: 1 Main St San Jose, CA 95131
- Save
- Click Mini-cart and click “Proceed to Checkout”
Expected result
- Sales tax of $0.83 (calculated off California address)
Actual result
- Sales tax of $0.84 (calculated off New York address)
Notice
- Clicking a payment method in the checkout will show the California address as the selected address, despite showing the New York tax)
- After observing the results, if you go back to the cart and click “Update Cart” and then proceed to checkout, the correct sales tax will be displayed
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 19 (11 by maintainers)
@engcom-Bravo doesn’t that screenshot show that you recreated the issue? If the tax rates are still the same, it’s showing new York tax for a California address
The expected result is 83c of tax, but you’ve got 84