Jump to content

[SOLVED]How to add price excl VAT plus VAT amount under final price?


Recommended Posts

  • 4 weeks later...

Try changing line 18 of product-list.tpl (in PrestaShop v1.3.1) from:

{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}



to:

{convertPrice price=$product.price}

{convertPrice price=$product.price_tax_exc} {l s='+ VAT'} {convertPrice price=$product.price-$product.price_tax_exc}

Link to comment
Share on other sites

Hey Rocky,
I have done it for the product page only. It was a little different for my version, but based on your idea and after
a few tries it worked.

the code was

               {if !$priceDisplay || $priceDisplay == 2}
{convertPrice price=$product->getPrice(true, $smarty.const.NULL)}
                       {l s='tax incl.'}



and I have changed it to

               {if !$priceDisplay || $priceDisplay == 2}
{convertPrice price=$product->getPrice(true, $smarty.const.NULL)}
                       {l s='tax incl.'}


({convertPrice price=$product->getPrice(false, $smarty.const.NULL)} {l s='+ VAT)'}

               {/if}



And I did a few changes for the "pretaxe_price" in the global.css to be default color, smaller size.

Link to comment
Share on other sites

There's a Javascript error on your page:

Message: Invalid argument.
Line: 309
Char: 2
Code: 0
URI: http://caramel-cycles.prestabox.com/themes/prestashop_old/js/product.js



I can't be sure, but I think this may be caused by using a PrestaShop v1.2.5 theme with PrestaShop v1.3. I noticed that the name of your theme is prestashop_old. Is there a prestashop theme based on the PrestaShop v1.3 theme you can switch to on the Preferences > Appearance tab?

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