It is frequently necessary to send the item price to the Gateway or to your ERP with the tax shown, i.e. separately from the price.
For this you can use the tax configuration in Pricing.
In this article we will show how the system works in these cases.
Scenario 1: My ERP sends the price including VAT to VTEX, so I do not need to calculate it.
- Category page
- Product page
- Shopping cart
- Checkout
Scenario 2: My ERP sends the price without VAT to VTEX.
To show the price including charges in the store window, use the attribute $product.BestPricePlusTax
.
Then to create a JS and add the amount of tax in the store window, you can also use the control $product.Tax
(It shows the charges registered for the product).
See documentation on controls here
Attention: On the product page you have to enter a JavaScript to add the values.
- Category page
- Product page
- Shopping cart
- Checkout