WilkoHartung Posted April 29, 2014 Share Posted April 29, 2014 Hi, I'm struggeling with the product.tpl file to move the order of price display. I want to move from: 233,88 € excl. BTW283,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 More sharing options...
dioniz Posted April 30, 2014 Share Posted April 30, 2014 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 More sharing options...
vekia Posted April 30, 2014 Share Posted April 30, 2014 it's not so good idea to duplicate topics: http://www.prestashop.com/forums/topic/327129-move-price-order-on-product-page/ Link to comment Share on other sites More sharing options...
WilkoHartung Posted April 30, 2014 Author Share Posted April 30, 2014 it's not so good idea to duplicate topics: http://www.prestashop.com/forums/topic/327129-move-price-order-on-product-page/ Sorry my mistake! Link to comment Share on other sites More sharing options...
vekia Posted April 30, 2014 Share Posted April 30, 2014 no worries. so im closing this topic. one question before close, problem is solved with dioniz code? Link to comment Share on other sites More sharing options...
WilkoHartung Posted April 30, 2014 Author Share Posted April 30, 2014 (edited) Yes the code from dioniz worked fine! But I posted an other related question in toppic http://www.prestashop.com/forums/topic/128287-display-product-price-with-and-without-tax/ I need the pricing also to display on the homefeatured Edited April 30, 2014 by WilkoHartung (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts