Annick Posted March 28, 2018 Share Posted March 28, 2018 Bonjour, Je suis actuellement en train de créer un site sous Prestashop 1.6. J'aurai aimé savoir s'il était possible d'empêcher les clients de mettre deux unités d'un même produit dans leur panier et si oui, comment réalise-t-on cela ? Merci d'avance pour votre aide. Link to comment Share on other sites More sharing options...
Eolia Posted March 28, 2018 Share Posted March 28, 2018 il faut modifier le code du controleur, pas le choix^^ Link to comment Share on other sites More sharing options...
Annick Posted March 28, 2018 Author Share Posted March 28, 2018 Ouf ah oui ok, euh je vais passer mon chemin alors :-( merci pour la réponse :-) Link to comment Share on other sites More sharing options...
Eolia Posted March 28, 2018 Share Posted March 28, 2018 Link to comment Share on other sites More sharing options...
Eolia Posted March 28, 2018 Share Posted March 28, 2018 Link to comment Share on other sites More sharing options...
Annick Posted March 28, 2018 Author Share Posted March 28, 2018 (edited) Super merci ! J'ai recopié ton code, mais du coup j'obtiens une page blanche dans le back office, c'est certainement moi qui ai fait une erreur de recopiage car j'imagine que le code est fonctionnelle ? Edited March 28, 2018 by Annick (see edit history) Link to comment Share on other sites More sharing options...
Eolia Posted March 28, 2018 Share Posted March 28, 2018 Jetez un oeil du côté de CartController.php^^ (l'ancien code est en commentaire, vous devriez le trouver facilement) Link to comment Share on other sites More sharing options...
Annick Posted March 28, 2018 Author Share Posted March 28, 2018 Oui sorry j'ai trouvé, j'ai édité mon précédent message pendant que vous répondiez à mon avis. ^^ J'ai recopié le code, mais du coup j'obtiens une page blanche dans le back office, c'est certainement moi qui ai fait une erreur de recopiage car j'imagine que le code est bien fonctionnel ? Link to comment Share on other sites More sharing options...
Eolia Posted March 28, 2018 Share Posted March 28, 2018 z'avez du oublier une virgule ou une parenthèse^^ Activez le mode debug pour voir l'erreur Link to comment Share on other sites More sharing options...
Johann Posted March 29, 2018 Share Posted March 29, 2018 sinon il y a l'excellent module d'Olivier Clemence, qui fait très bien le job : https://www.store-opart.fr/p/26-limit-quantity.html Link to comment Share on other sites More sharing options...
Annick Posted March 29, 2018 Author Share Posted March 29, 2018 Parfait, ça fonctionne ! Un énorme merci Eolia 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