Why does choosing a variant remove the tax from the product price?

I have added some customisations to a site, to display the ex VAT price and inc VAT price on products in all areas - grid, product, cart etc.

This works as intended as you can see here:

However on products with variants (where the price is different) when you choose the variant it updates the prices but removes the tax, see here:

https://www.sterling-automotive.co.uk/collections/steering-wheels/products/momo-prototipo-steering-wheel-black-leather

When you choose a variant, it removes the tax.

Any idea why/where I need to edit the code?

Hello @ecomlabs ,

You need to find the callback function in theme.js or other related JS files.
There you have to find the function which changes the price on change of the variant once found and append your variable which holds the vat price.

btw just want to let you know that it is not possible if you don’t have deep knowledge of the JS.
Thanks

1 Like