gmasson Posted April 1, 2011 Share Posted April 1, 2011 Bonjour à tous,Je viens de me rendre compte d'un problème assez embêtant sous IE 8 (je suis sous MAC donc je ne l'avais pas vu avant..). En fait, lorsqu'une personne veut commander un produit en choisissant sa taille parmi la liste déroulante des déclinaisons possibles, lorsqu'il ajoute le produit au panier cela garde la déclinaison par défaut (malgré son choix dans le menu déroulant).Donc, sous Internet Explorer mes clients ne peuvent pas choisir la bonne déclinaison du produit ce qui est très embêtant. Je n'ai aucun soucis sous Firefox ou Google Chrome...Des idées ?Merci d'avanceNB: Je suis sous la version 1.4.0.17 de prestashop Link to comment Share on other sites More sharing options...
gmasson Posted April 4, 2011 Author Share Posted April 4, 2011 Personne n'a eu le même problème ? Link to comment Share on other sites More sharing options...
gmasson Posted April 5, 2011 Author Share Posted April 5, 2011 Bon.. après une réinstallation complète de prestashop, le problème a légèrement bougé... maintenant les déclinaisons sont inversées... quand je choisi le bleu, c'est le rouge qui se met dans le panier. J'ai un problème au niveau des prix qui s'est rajouté par dessus...Comme avant tout fonctionne sur Firefox etc... sauf sur IE8Des indices ?Merci d'avance Link to comment Share on other sites More sharing options...
gmasson Posted April 7, 2011 Author Share Posted April 7, 2011 Je me réponds donc à moi même ceux pour qui auraient le même problème que moi. Dans le fichier : /themes/prestashop/js/product.js remplacez : //testing every combination to find the conbination's attributes' case of the user for (var combination = 0; combination < combinations.length; ++combination) { //verify if this combinaison is the same that the user's choice nbAttributesEquals = 0; for (idAttribute in combinations[combination]['idsAttributes']) { //ie6 bug fix if (idAttribute != 'indexOf'){ //if this attribute has been choose by user if (in_array(combinations[combination]['idsAttributes'][idAttribute], choice)) { //we are in a good way to find the good combination ! nbAttributesEquals++; } } } Par //testing every combination to find the conbination's attributes' case of the user for (var combination = 0; combination < combinations.length; ++combination) { //verify if this combinaison is the same that the user's choice nbAttributesEquals = 0; for (var idAttribute in combinations[combination]['idsAttributes']) { //ie6 bug fix if (idAttribute != 'indexOf' && idAttribute != 'filter'){ //if this attribute has been choose by user if (in_array(combinations[combination]['idsAttributes'][idAttribute], choice)) { //we are in a good way to find the good combination ! nbAttributesEquals++; } } } Merci beaucoup à David Bruand de m'avoir trouvé cette solution ! 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