Jump to content

found bug in V1.3.0.3 beta and I solved it


Recommended Posts

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

20783_z4d01g72uhfbE0mjHj0N_t

Link to comment
Share on other sites

×
×
  • Create New...