shalalayne Posted July 31, 2014 Share Posted July 31, 2014 Hi I have added a Tax Rule on all the products on our website. In the BO, the base price and final price can be seen: Which isn't a problem (: What I would like to know is how to display both base price and final price in the product page: I appreciate any help from anyone. Thank you, Shai Link to comment Share on other sites More sharing options...
PrestaShark Posted July 31, 2014 Share Posted July 31, 2014 (edited) Hi try this one in product.tpl <strong style="font-size:14px;">Retail Price:</strong><br /> <span id="pretaxe_price" style="font-size:14px;" ><span id="pretaxe_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL, 2)}</span> {l s='tax excl.'}</span><br /> <span id="our_price_display" style="font-weight:bold;">{convertPrice price=$productPrice} {if $tax_enabled && ((isset($display_tax_label) && $display_tax_label == 1) OR !isset($display_tax_label))} {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if} {/if} </span> Result: Edited July 31, 2014 by PrestaShark (see edit history) 1 Link to comment Share on other sites More sharing options...
Cooltights Posted July 31, 2014 Share Posted July 31, 2014 You will have to edit your own product.tpl Which can be a hard one, but not much ells to do :/ Link to comment Share on other sites More sharing options...
shalalayne Posted August 1, 2014 Author Share Posted August 1, 2014 @PrestaShark and @Cooltights thank you! I shall try and edit my product.tpl hopefully I'll be successful (: Link to comment Share on other sites More sharing options...
Alt-team Posted August 1, 2014 Share Posted August 1, 2014 Shalalayne, please, do not forget to write here about the results. It may help somebody. Best regards, Alt-team Link to comment Share on other sites More sharing options...
PrestaShark Posted August 1, 2014 Share Posted August 1, 2014 (edited) And remebmer dont forget to:1) Share with community Your solution for Your problem2) - Like the post replay that help You solve problem, and reward user that help You with solving problem3) - Mark thread topic as best answer that solve your problem and give everyone information that this topic have solution Best regards! Edited August 1, 2014 by PrestaShark (see edit history) Link to comment Share on other sites More sharing options...
shalalayne Posted August 2, 2014 Author Share Posted August 2, 2014 Hi try this one in product.tpl <strong style="font-size:14px;">Retail Price:</strong><br /> <span id="pretaxe_price" style="font-size:14px;" ><span id="pretaxe_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL, 2)}</span> {l s='tax excl.'}</span><br /> <span id="our_price_display" style="font-weight:bold;">{convertPrice price=$productPrice} {if $tax_enabled && ((isset($display_tax_label) && $display_tax_label == 1) OR !isset($display_tax_label))} {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if} {/if} </span> Result: price.png Hello @ PrestaShark I copied the code you provided and this is the result: I re-edited it so it's now: <strong style="font-size:14px;">Retail Price:</strong><br /><span id="pretaxe_price" style="font-size:14px;" ><span id="pretaxe_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL, 2)}</span></span><br /> and this is the result: Thank you very much for your help. So this topic is solved (: Link to comment Share on other sites More sharing options...
Recommended Posts