Jump to content

Recommended Posts

Hi,

 

I'm struggeling with the product.tpl file to move the order of price display.

 

I want to move from:

 

233,88 € excl. BTW
283,00 €

to:

 

283,00 €
233,88 € excl. BTW

site: http://techkoop.nl/nl/sanitairkranen/161-doucheset-met-thermosstaatkraan.html

 

My product .tpl file looks like this..

 

<div class="price">
{if $product->specificPrice AND $product->specificPrice.reduction && $product->specificPrice.reduction > 0}
<p id="old_price">
<span class="bold">
{if $priceDisplay >= 0 && $priceDisplay <= 2}
{if $productPriceWithoutReduction > $productPrice}
<span id="old_price_display">{convertPrice price=$productPriceWithoutReduction}</span>
<!-- {if $tax_enabled && $display_tax_label == 1}
{if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if}
{/if} -->
{/if}
{/if}
</span>
</p>
//gewijzigd door willbefine excl. btw prijs toegevoegd
{/if}
{if $priceDisplay >= 0 && $priceDisplay <= 2}
 <span id="pretaxe_price"><span id="pretaxe_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL, 2)}</span> {l s='excl. BTW'}</span><br />
 <span id="our_price_display"  font-color:#424242" >{convertPrice price=$productPrice}</span>
  {if $tax_enabled  && ((isset($display_tax_label) && $display_tax_label == 1) OR !isset($display_tax_label))}
{if $priceDisplay == 1}{l s='excl. BTW'}{else}{l s=''}{/if}
{/if}
{/if}
 
{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}

 

 

Link to comment
Share on other sites

Try to change:

{if $priceDisplay >= 0 && $priceDisplay <= 2}

 <span id="pretaxe_price"><span id="pretaxe_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL, 2)}</span> {l s='excl. BTW'}</span><br />
 <span id="our_price_display"  font-color:#424242" >{convertPrice price=$productPrice}</span>
  {if $tax_enabled  && ((isset($display_tax_label) && $display_tax_label == 1) OR !isset($display_tax_label))}
{if $priceDisplay == 1}{l s='excl. BTW'}{else}{l s=''}{/if}
{/if}
{/if}

to this

{if $priceDisplay >= 0 && $priceDisplay <= 2}
 <span id="our_price_display"  font-color:#424242" >{convertPrice price=$productPrice}</span><br />
 <span id="pretaxe_price"><span id="pretaxe_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL, 2)}</span> {l s='excl. BTW'}</span>
  {if $tax_enabled  && ((isset($display_tax_label) && $display_tax_label == 1) OR !isset($display_tax_label))}
{if $priceDisplay == 1}{l s='excl. BTW'}{else}{l s=''}{/if}
{/if}
{/if}
Link to comment
Share on other sites

×
×
  • Create New...