Jump to content

[resolu] 1.3.7.0 module loyalty - correctif erreur


Recommended Posts

Module loyalty - correction d'erreur de parenthese

cette erreur provoque l'absence du décompte des points sur la page produit,
lorsque le calcul des points est désactivé pour les produits à prix réduit

modules\loyalty\loyalty.php - lignes 329
remplacer

               if (!intval(Configuration::get('PS_LOYALTY_NONE_AWARD')) AND ($product->reduction_from == $product->reduction_to OR 
               date('Y-m-d H:i:s') <= $product->reduction_to AND date('Y-m-d H:i:s') >= $product->reduction_from AND 
               ($product->reduction_price > 0 OR $product->reduction_percent > 0 OR $product->on_sale)))



par

               if (!intval(Configuration::get('PS_LOYALTY_NONE_AWARD')) AND ($product->reduction_from == $product->reduction_to OR 
               date('Y-m-d H:i:s') <= $product->reduction_to AND date('Y-m-d H:i:s') >= $product->reduction_from) AND 
               ($product->reduction_price > 0 OR $product->reduction_percent > 0 OR $product->on_sale))



modules\loyalty\LoyaltyModule.php - lignes 105 à 107
remplacer

               if (!intval(Configuration::get('PS_LOYALTY_NONE_AWARD')) AND ($product['reduction_from'] == $product['reduction_to'] OR 
               date('Y-m-d H:i:s') <= $product['reduction_to'] AND date('Y-m-d H:i:s') >= $product['reduction_from'] AND 
               ($product['reduction_price'] > 0 OR $product['reduction_percent'] > 0 OR $product['on_sale'])))


par

                if (!intval(Configuration::get('PS_LOYALTY_NONE_AWARD')) AND 
               ($product['reduction_from'] == $product['reduction_to'] OR date('Y-m-d H:i:s') <= $product['reduction_to'] AND date('Y-m-d H:i:s') >= $product['reduction_from']) AND 
               ($product['reduction_price'] > 0 OR $product['reduction_percent'] > 0 OR $product['on_sale']))

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...