Jump to content

Recommended Posts

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:

base&finalprice.jpg

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:

basefinalprice2.jpg

I appreciate any help from anyone.

 

Thank you,

Shai

Link to comment
Share on other sites

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:

post-583420-0-33622800-1406800727_thumb.png

Edited by PrestaShark (see edit history)
  • Like 1
Link to comment
Share on other sites

And remebmer dont forget to:
1) Share with community Your solution for Your problem
2) post-583420-0-23479600-1406877144.jpg - Like the post replay that help You solve problem, and reward user that help You with solving problem
3) post-583420-0-80818000-1406877143_thumb.jpg - Mark thread topic as best answer that solve your problem and give everyone information that this topic have solution
 
Best regards! :)

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

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:

attachicon.gifprice.png

Hello @ PrestaShark I copied the code you provided and this is the result:

for_forum2.jpg

 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:

for_forum.jpg

 

Thank you very much for your help.

 

So this topic is solved (:

Link to comment
Share on other sites

×
×
  • Create New...