asmar Posted December 5, 2013 Share Posted December 5, 2013 Hi all, I've got the latest 1.5.6.1 verion installed and trying to figure out how to display both prices near each product, with and without VAT. Is there a way to display them both? Thanks Link to comment Share on other sites More sharing options...
Sharak Posted December 25, 2013 Share Posted December 25, 2013 For product list - edit /themes/your_theme/product-list.tpl ~line 52 For homefeatured - edit /themes/your_theme/modules/homefeatured/homefeatured.tpl ~line 46 In above files change this: <span class="price" style="display: inline;">{if !$priceDisplay}{convertPrice price=$product.price}{else}{convertPrice price=$product.price_tax_exc}{/if}</span> ...to this: <span class="price" style="display: inline;">{if !$priceDisplay}{convertPrice price=$product.price}{/if}</span> <br><span class="price_tax_exc">{convertPrice price=$product.price_tax_exc} {l s='tax exc.'}</span> You may need to add some stiling for .price_tax_exc ------------------------------ For product page - in file /themes/your_theme/product.tpl find this (~ line 405) {if $priceDisplay == 2} <br /> <span id="pretaxe_price"><span id="pretaxe_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL)}</span> {l s='tax excl.'}</span> {/if} ...and simply delete {if $priceDisplay == 2} and {/if} 1 Link to comment Share on other sites More sharing options...
asmar Posted December 26, 2013 Author Share Posted December 26, 2013 Thanks a lot for the reply. I did the modification initially in product.tpl just to see how it looks but it still displays the same; that is just the price without VAT. I just put the code into comments like: <!-- {if $priceDisplay == 2} --> <span id="pretaxe_price"><span id="pretaxe_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL)}</span> {l s='tax excl.'}</span> <!-- {/if} --> Link to comment Share on other sites More sharing options...
Sharak Posted December 26, 2013 Share Posted December 26, 2013 Check your settings for price display in shop admin. You've probably changed it show only prices withouth VAT. Link to comment Share on other sites More sharing options...
asmar Posted December 26, 2013 Author Share Posted December 26, 2013 Would you please be more specific? I have under "Price display method" the value "Tax excluded". Are you referring on this setting? Link to comment Share on other sites More sharing options...
Sharak Posted December 27, 2013 Share Posted December 27, 2013 Exactly. By removing/commenting {if} part you forced presta to show prices without tax, no matter what settings you have. But with settings like above your shop shows ONLY prices without tax anyway. Change it to "Tax included" to show both prices. Link to comment Share on other sites More sharing options...
Recommended Posts