Ceubex Posted January 9, 2014 Share Posted January 9, 2014 Bonjour, Cela fait 4 heures que je suis deçu et je suis sûr maintenant que c'est un bug. Je suis en Prestashop 1.5.6.1 et dans le panier, l'ajax déconne avec les prix degressifs. Voici la procédure pour reproduire le soucis : 1) Aller sur http://drx.bluebean.org/index.php?id_product=1652&controller=product&id_lang=8#/taille-small_6_7 2) Commander environ 5 unités du produit (comportement normal : prix unitaire à 5,79 € en dessous de 5, 4,45 € au dessus de 5 inclu) 3) Jouer avec les boutons + et - dans le panier. Parfois on a 4,45 € pour 4 unité et 5,79 € pour 5 Question que se passe-t-il ? Link to comment Share on other sites More sharing options...
Lucas Cerdan Posted January 10, 2014 Share Posted January 10, 2014 Bug reproduit sur 1.5.6.1 et 1.6.0. On regarde. Link to comment Share on other sites More sharing options...
Lucas Cerdan Posted January 14, 2014 Share Posted January 14, 2014 Bonjour, Ce bug a été corrigé sur la 1.6. Toutefois, pour la 1.5, je vous invite à appliquer par vous même ce correctif: https://github.com/PrestaShop/PrestaShop/commit/57b273894cd8c2ba71f105ad7991cc2498a0405d Le soucis venait de notre cache et devrait désormais être résolu. Merci pour votre retour, Lucas Link to comment Share on other sites More sharing options...
Ceubex Posted January 14, 2014 Author Share Posted January 14, 2014 Ca fonctionne. Merci pour votre efficacité Link to comment Share on other sites More sharing options...
Griiingo Posted April 7, 2014 Share Posted April 7, 2014 Bonjour je suis sous presta 1.5.6.0 avec le même soucis. Mais mon fichier classes/Product.php ne contient pas les même lignes de codes que celui de votre exemple sur github.com !!! Auriez-vous la manipulation à faire pour ce fichier Product.php version 1.5.6.0 Merci Link to comment Share on other sites More sharing options...
Lucas Cerdan Posted April 7, 2014 Share Posted April 7, 2014 C'est la même chose, mais à un numéro de ligne différent: https://github.com/PrestaShop/PrestaShop-1.5/commit/9bcde45d85f4c4eafaa7de787ddaba9e36b9318b Link to comment Share on other sites More sharing options...
Griiingo Posted April 7, 2014 Share Posted April 7, 2014 Re, Désolé mais comme code moi j'ai ça : à la ligne 2492. Fichier d'origne template defaut. f ((int)$id_cart) { $condition = ''; $cache_name = (int)$id_cart.'_'.(int)$id_product; if (!isset(self::$_cart_quantity[$cache_name]) || self::$_cart_quantity[$cache_name] != (int)$quantity) self::$_cart_quantity[$cache_name] = Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue(' SELECT SUM(`quantity`) FROM `'._DB_PREFIX_.'cart_product` WHERE `id_product` = '.(int)$id_product.' AND `id_cart` = '.(int)$id_cart); $cart_quantity = self::$_cart_quantity[$cache_name]; } Je n'ai pas de (!Cache::isStored($cache_id)) dans ce fichier dans classes ! Je dois pas etre loin ... Link to comment Share on other sites More sharing options...
Lucas Cerdan Posted April 8, 2014 Share Posted April 8, 2014 You should upgrade to 1.5.6.2 then. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now