lape Posted July 12, 2010 Share Posted July 12, 2010 How can i remove the sales prices on my main page?i haven't put in any sale prices and yet he puts it on the main page, he just takes the normal price and makes em into a sales pricehttp://www.funky-lama.com/index.php?id_lang=1 Link to comment Share on other sites More sharing options...
rocky Posted July 13, 2010 Share Posted July 13, 2010 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 More sharing options...
lape Posted July 13, 2010 Author Share Posted July 13, 2010 I changed it but it didn't do anythingI 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 More sharing options...
rocky Posted July 13, 2010 Share Posted July 13, 2010 If that doesn't work, I'm not sure what will. I don't have access to your theme, so I can't mess around with the code. Link to comment Share on other sites More sharing options...
Recommended Posts