deech123 Posted March 24, 2010 Share Posted March 24, 2010 Hi guys,I found a bug in the code and after some search I could solve it, so I share this.in the theme prestashop on the file : product.tpl on line 202 there is : {if $product->on_sale}.... this is not complete.because the moment a product is out of sale (by the date you enter in de BO) the message :WITH REDUCTION ! ( MET KORTING ! in dutch :-) ) and the on_sale picture is still showed.(see picture)so you must change the line in 202 to : {if $product->on_sale && ($product->reduction_from == $product->reduction_to OR ($smarty.now|date_format:'%Y-%m-%d' <= $product->reduction_to && $smarty.now|date_format:'%Y-%m-%d' >= $product->reduction_from))} see my example picture.when the code is not changed you get this, and this is wrong offcourse.hope that I could help out some guys that hat the same problems.Greetz Link to comment Share on other sites More sharing options...
olea Posted March 24, 2010 Share Posted March 24, 2010 You should post it in the bugtracker Link to comment Share on other sites More sharing options...
Recommended Posts