Récemment
-
Images produit qui disparaissent
Bugs & Améliorations il y a environ 5 jours15 -
Urls bizarres dans la console search
PhenixSuite il y a environ 8 jours12 -
Erreurs 410 dans BO
PhenixSuite il y a environ 8 jours3 -
la classe search
Bugs & Améliorations il y a environ 10 jours2 -
Probleme depuis MAJ phenix 1.6.2.36
PhenixSuite il y a environ 10 jours8 -
[resolu] Le module mondial relay 3.4.5
Bugs & Améliorations il y a environ 13 jours1 -
controlleur fournisseurs.
Bugs & Améliorations il y a environ 15 jours11 -
J'en profite (la fougue de la jeunesse) (ah ah ah)
Bugs & Améliorations il y a environ 16 jours5 -
Bon dernier du jour mais cela me turlupine classe search
Bugs & Améliorations il y a environ 16 jours4 -
se connecter comme un client idntifié
Bugs & Améliorations il y a environ 16 jours1 -
la bonne blague
Discussion générale il y a environ 18 jours2 -
Passage de la 16.1.9 a la PhenixSuite 1.6.2.36
Bugs & Améliorations il y a environ 22 jours8 -
Echec de l'installation de Creative Elements
Bugs & Améliorations il y a environ 29 jours3 -
[Résolu] Modification données client dans l'admin
PhenixSuite il y a environ 29 jours10 -
googletagmanager
PhenixSuite il y a environ 30 jours2 -
2 téléphones obligatoires
PhenixSuite 21 juin 2025, 21:5411 -
Liens qui disparaissent
PhenixSuite 21 juin 2025, 17:545 -
Smart cache JS et Iphone
PhenixSuite 20 juin 2025, 23:121 -
Hack ancien PS 1.6 avant mise à jour Phenix
PhenixSuite 16 juin 2025, 07:423 -
[RESOLU]Souci Revolut et Hipay
Modules 14 juin 2025, 18:5511
[1.6.X.X] Le module loyalty s'affiche sur les articles en promotion
-
Le module loyalty affiche des points de fidélité sur les articles en promotion alors que dans le backoffice il est coché ne pas donner de points aux articles en promotion.
Prestashop compare une variable avec parseInt qui retourne donc un nombre entier.
Ca fonctionne de nouveau pour les versions de theme > 1.6.1.0 avec
https://github.com/PrestaShop/PrestaShop/pull/8791
Autre solution qui fonctionnera en 1.6.0.X ( @doekia )
Ajouter dans le tpl
{addJsDef no_pts_discounted=$no_pts_discounted}
Remplacer :
if (typeof(new_price) == 'undefined' || typeof(productPriceWithoutReduction) == 'undefined')
Par
if (typeof(new_price) == 'undefined' || typeof(productPriceWithoutReduction) == 'undefined' || no_pts_discounted == 1)
-
Pour les versions 1.6.1.X
$(document).ready(function() { $(document).on('change', '#our_price_display', function(e){ updateLoyaltyView(priceWithDiscountsDisplay); }) updateLoyaltyView(priceWithDiscountsDisplay); }); function updateLoyaltyView(new_price) { if (typeof(new_price) == 'undefined' || typeof(productPriceWithoutReduction) == 'undefined') return; var points = Math.floor(new_price / point_rate); var total_points = points_in_cart + points; var voucher = total_points * point_value; if (none_award == 0 && productPriceWithoutReduction != new_price) { $('#loyalty').html(loyalty_already); } else if (!points) { $('#loyalty').html(loyalty_nopoints); } else { var content = loyalty_willcollect + " <b><span id=\"loyalty_points\">"+points+'</span> '; if (points > 1) content += loyalty_points + "</b>. "; else content += loyalty_point + "</b>. "; content += loyalty_total + " <b><span id=\"total_loyalty_points\">"+total_points+'</span> '; if (total_points > 1) content += loyalty_points; else content += loyalty_point; content += '</b> ' + loyalty_converted + ' '; content += '<span id="loyalty_price">'+formatCurrency(voucher, currencyFormat, currencySign, currencyBlank)+'</span>.'; $('#loyalty').html(content); } }
Fonctionne également si un produit à une remise que sur une déclinaison.