Jump to content

Display price with AND without tax/VAT


Recommended Posts

so in this case you need to modify template files for those sections. By that i mean that you have to add tax smarty variable into the:

 

- modules/homefeatured/homefeatured.tpl

- themes/your_theme/product.tpl

- themes/your_theme/product-list.tpl

 

of course you must remember that many other modules also showing prices ...

 

all you need is to add smarty tax value variable, which usually looks like:

 

for product.tpl file:

 

tax excl: {convertPrice price=$product->getPrice(false, $smarty.const.NULL, 2)}

tax incl: {convertPrice price=$productPrice}

 

for other template files it usually looks the same, but all depends on variables... you can try.

 

more information about that you can read here:

http://www.prestashop.com/forums/topic/128287-display-product-price-with-and-without-tax/

  • Like 1
Link to comment
Share on other sites

Thanks for this - I have looked at the guide you linked too and if I follow instructions I still cannot get this to work. When I upload the file with changed code, the product page for example will not load and only shows a blank page?

 

Any help would be great.

Link to comment
Share on other sites

Thanks for this - I have looked at the guide you linked too and if I follow instructions I still cannot get this to work. When I upload the file with changed code, the product page for example will not load and only shows a blank page?

 

Any help would be great.

 

it all depends on where you insert this code, for example - do you use variables that i pasted above for product.tpl file?

in other tpl files it may not work properly, because you have to use a bit different code

Link to comment
Share on other sites

tax excl: {convertPrice price=$product->getPrice(false, $smarty.const.NULL, 2)}

tax incl: {convertPrice price=$productPrice}

 

this code is for product.tpl template file, you can add this variables / code anywhere you want in product.tpl file

Link to comment
Share on other sites

  • 2 years later...

Hi Vekia

 

Thanks - got that and it works fine when added to price box code. One issue remains with products that have combinations with price difference. If selecting from drop down an option that has a different price then...

The Ex Tax Price changes, (all prices are set ex tax) however the without tax price (using {convertPrice price=$product->getPrice(true, $smarty.const.NULL)} )remains the same.

 

Is there a fix for this so that inc tax will take in to account price difference?

Link to comment
Share on other sites

  • 4 weeks later...

hii everyone, i want to display the unit price tax excluded, but it seems that prestashop always displays it with taxes.

 

I'm not the only one to have this problem and i don't find the answer to that question.

 

Is Vekia's solution can work with $unit_price variable ?

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...