Jump to content

Show product price with vat when is selected to show it with vat excluded


sdancer75

Recommended Posts

I am using presta 1.6 and I have selected to hide the vat from all group users. But I want one exception. I want in the product template file to show both prices with and without vat. I have the price without vat already and I am OK with that. From the other side what script can I use to show the price included vat ?

 

Regards

Edited by sdancer75 (see edit history)
Link to comment
Share on other sites

I am using presta 1.6 and I have selected to hide the vat from all group users. But I want one exception. I want in the product template file to show both prices with and without vat. I have the price without vat already and I am OK with that. From the other side what script can I use to show the price included vat ?

 

Regards

 

Ok I found a solution. I excluded VAT from all groups. Then when I want print the price with vat included,  I just replace/add the following script in my theme 

 

{convertPrice price=$productPrice * ( ($product->tax_rate / 100) + 1 )}

 

which is the calc of the tax rate the specific product belogs.

Edited by sdancer75 (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...