Jump to content

prices


Recommended Posts

It looks like you have modified modules/homefeatured/homefeatured.tpl. It is different to the default one. I think it is the following code on lines 33-36 that is causing the problem:

{assign var='save' value=$product.price_without_reduction-$product.price_tax_exc}
{if $save > 0}
{displayWtPrice p=$product.price_without_reduction}
{/if}



The variable $save is greater than 0 when it shouldn't be. I think it is because it is always using $product.price_tax_exc instead of checking whether tax is enabled. Try changing it to:

{if !$priceDisplay}
{assign var='save' value=$product.price_without_reduction-$product.price}
{else}
{assign var='save' value=$product.price_without_reduction-$product.price_tax_exc}
{/if}
{if $save > 0}
{displayWtPrice p=$product.price_without_reduction}
{/if}

Link to comment
Share on other sites

I changed it but it didn't do anything
I know have this code

{if !$priceDisplay}
                           {assign var='off' value=$product.price_without_reduction-$product.price}
                           {assign var='off' value=$off/$product.price_without_reduction*100}
                           {assign var='off' value=$off|round}
                       {else}
                           {assign var='off' value=$product.price_without_reduction-$product.price_tax_exc}
                           {assign var='off' value=$off/$product.price_without_reduction*100}
                           {assign var='off' value=$off|round}
                       {/if}
                       {if $off > 0}
-{$off}%
                       {/if}
                       {if !$priceDisplay}
                       {assign var='save' value=$product.price_without_reduction-$product.price}
                       {else}
                       {assign var='save' value=$product.price_without_reduction-$product.price_tax_exc}
                       {/if}
                       {if $save > 0}
{displayWtPrice p=$product.price_without_reduction}
                       {/if}

Link to comment
Share on other sites

×
×
  • Create New...