[Skip to main content](#vessel-content)

#   Ajout du mauvais produit au panier

##

- **[cedric.fatio](/forum/user/32630-cedric-fatio "View cedric.fatio's Profile")**
- [![cedric.fatio's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32630-cedric-fatio "View cedric.fatio's Profile") Topic Author
- [ Offline](/forum/user/32630-cedric-fatio)

Less More

- Posts: 23
- Thank you received: 2
-
-

12 years 5 months ago [\#159384](#159384) by [cedric.fatio](/forum/user/32630-cedric-fatio "View cedric.fatio's Profile")  *[Ajout du mauvais produit au panier](/forum/5-support-en-francais-french-support-/868850-ajout-du-mauvais-produit-au-panier#159384 "-- url of the page with the problem -- :   www.ohsec.ch  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Bonjour,  Certains des mes produits ont différentes variants, respectivement différentes tailles. Pour certains produits, lorsque je choisi une taille et que je l'ajoute au panier, une autre taille (du même produit) que celle choisie est ajoutée au panier.  Exemple concret, lorsque j'essaie d'ajouter ce produit   www.ohsec.ch/index.php/produits/femmes/i...-tena-pants-discreet  en taille M au panier, systématiquement ce produit est ajouté en taille L au panier.  Pour quelle raison? Comment puis-je résoudre ce problème?  Car je n'ai pas ce problèmes avec d'autres produits ayant également différentes variante... et je ne trouve vraiment pas l'erreur...  Merci pour votre aide et meilleures salutations, Cédric")* was created by *[cedric.fatio](/forum/user/32630-cedric-fatio "View cedric.fatio's Profile")*

-- url of the page with the problem -- : [ www.ohsec.ch](http://www.ohsec.ch)
-- HikaShop version -- : 2.3.1
-- Joomla version -- : 3.3
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

Bonjour,

Certains des mes produits ont différentes variants, respectivement différentes tailles. Pour certains produits, lorsque je choisi une taille et que je l'ajoute au panier, une autre taille (du même produit) que celle choisie est ajoutée au panier.

Exemple concret, lorsque j'essaie d'ajouter ce produit [ www.ohsec.ch/index.php/produits/femmes/i...-tena-pants-discreet](http://www.ohsec.ch/index.php/produits/femmes/incontinence-legere/product/33-tena-pants-discreet) en taille M au panier, systématiquement ce produit est ajouté en taille L au panier.

Pour quelle raison? Comment puis-je résoudre ce problème?

Car je n'ai pas ce problèmes avec d'autres produits ayant également différentes variante... et je ne trouve vraiment pas l'erreur...

Merci pour votre aide et meilleures salutations,
Cédric

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODY4ODUwLWFqb3V0LWR1LW1hdXZhaXMtcHJvZHVpdC1hdS1wYW5pZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

12 years 5 months ago [\#159391](#159391) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Ajout du mauvais produit au panier](/forum/5-support-en-francais-french-support-/868850-ajout-du-mauvais-produit-au-panier#159391 "-- url of the page with the problem -- :   www.ohsec.ch  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Bonjour,  Certains des mes produits ont différentes variants, respectivement différentes tailles. Pour certains produits, lorsque je choisi une taille et que je l'ajoute au panier, une autre taille (du même produit) que celle choisie est ajoutée au panier.  Exemple concret, lorsque j'essaie d'ajouter ce produit   www.ohsec.ch/index.php/produits/femmes/i...-tena-pants-discreet  en taille M au panier, systématiquement ce produit est ajouté en taille L au panier.  Pour quelle raison? Comment puis-je résoudre ce problème?  Car je n'ai pas ce problèmes avec d'autres produits ayant également différentes variante... et je ne trouve vraiment pas l'erreur...  Merci pour votre aide et meilleures salutations, Cédric")*

Bonjour,

Le problème vient du fait que vous avez déplacé les données des variantes à l'intérieur du formulaire de la page produit au lieu qu'elles soient à l'extérieur du formulaire.
Du coup, au lieu d'envoyer au serveur l'id de la variante sélectionnée, l'ajout au panier envoi l'id de la dernière variante affichée sur la page.

Donc je ne sais pas quelle genre de modification vous avez fait dans le code des vues d'HikaShop mais il va falloir revoir cela ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODY4ODUwLWFqb3V0LWR1LW1hdXZhaXMtcHJvZHVpdC1hdS1wYW5pZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[cedric.fatio](/forum/user/32630-cedric-fatio "View cedric.fatio's Profile")**
- [![cedric.fatio's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/32630-cedric-fatio "View cedric.fatio's Profile") Topic Author
- [ Offline](/forum/user/32630-cedric-fatio)

Less More

- Posts: 23
- Thank you received: 2
-
-

12 years 5 months ago [\#159894](#159894) by [cedric.fatio](/forum/user/32630-cedric-fatio "View cedric.fatio's Profile")  Replied by *[cedric.fatio](/forum/user/32630-cedric-fatio "View cedric.fatio's Profile")* on topic *[Ajout du mauvais produit au panier](/forum/5-support-en-francais-french-support-/868850-ajout-du-mauvais-produit-au-panier#159894 "-- url of the page with the problem -- :   www.ohsec.ch  -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.3 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Bonjour,  Certains des mes produits ont différentes variants, respectivement différentes tailles. Pour certains produits, lorsque je choisi une taille et que je l'ajoute au panier, une autre taille (du même produit) que celle choisie est ajoutée au panier.  Exemple concret, lorsque j'essaie d'ajouter ce produit   www.ohsec.ch/index.php/produits/femmes/i...-tena-pants-discreet  en taille M au panier, systématiquement ce produit est ajouté en taille L au panier.  Pour quelle raison? Comment puis-je résoudre ce problème?  Car je n'ai pas ce problèmes avec d'autres produits ayant également différentes variante... et je ne trouve vraiment pas l'erreur...  Merci pour votre aide et meilleures salutations, Cédric")*

Bonjour,

Je n'ai pas fait de modifications majeures dans le code des vues. Je me suis cependant rendu compte qu'il y avait quelques petites erreurs dans le fichier .csv des produits que j'upload dans HikaShop. Je les ai corrigées et il semblerait que le problème soit maintenant résolu ![:-)](/media/kunena/emoticons/3.png ":-)")!

Merci pour votre support et meilleures salutations,
Cédric

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vODY4ODUwLWFqb3V0LWR1LW1hdXZhaXMtcHJvZHVpdC1hdS1wYW5pZXI/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.047 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
