Jump to content

changing position of old and new prices on product.tpl 1.4.1


Recommended Posts

I did spend more than 2 hours doing it. Seems a relatively simple task but... whatever I do, the positions remain the same. This is how I did:

            {if $product->show_price AND !isset($restricted_country_mode) AND !$PS_CATALOG_MODE}
               {if $product->specificPrice AND $product->specificPrice.reduction}


                   {if $priceDisplay >= 0 && $priceDisplay <= 2}
                       {if $productPriceWithoutRedution > $productPrice}
{convertPrice price=$productPriceWithoutRedution}
                               {if $tax_enabled && $display_tax_label == 1}
                                   {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if}
                               {/if}
                       {/if}
                   {/if}


               {/if}
               {if $product->specificPrice AND $product->specificPrice.reduction_type == 'percentage'}

{l s='(-'} {$product->specificPrice.reduction*100} %{l s=')'}
               {/if}            


                   {if !$priceDisplay || $priceDisplay == 2}
                       {assign var='productPrice' value=$product->getPrice(true, $smarty.const.NULL)}
                       {assign var='productPriceWithoutRedution' value=$product->getPriceWithoutReduct(false, $smarty.const.NULL)}
                   {elseif $priceDisplay == 1}
                       {assign var='productPrice' value=$product->getPrice(false, $smarty.const.NULL)}
                       {assign var='productPriceWithoutRedution' value=$product->getPriceWithoutReduct(true, $smarty.const.NULL)}
                   {/if}



                   {if $priceDisplay >= 0 && $priceDisplay <= 2}
{convertPrice price=$productPrice}
                           {if $tax_enabled  && $display_tax_label == 1}
                               {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if}
                           {/if}
                   {/if}

                   {if $priceDisplay == 2}


{convertPrice price=$product->getPrice(false, $smarty.const.NULL)} {l s='tax excl.'}
                   {/if}




What is that I did wrong here?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...