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

#   Add to cart HTML adding wrong product

##

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

Less More

- Posts: 5
- Thank you received: 0
-
-

3 years 1 day ago [\#357168](#357168) by [Kasane23](/forum/user/76105-kasane23 "View Kasane23's Profile")  *[Add to cart HTML adding wrong product](/forum/27-checkout/907383-add-to-cart-html-adding-wrong-product#357168 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : J4 -- PHP version -- : 8.1.26 -- Browser(s) name and version -- : ALL -- Error-message(debug-mod must be tuned on) -- : na  I see this was raised in the forum 10 years ago.  I have multiple products and have the add to cart module on each page for user convenience and also the add to cart html on each page. For some reason if I add Module 2 via the HTML code, the Product in the cart is module 1?  Can you shed some light please?  Thank you,  Mark")* was created by *[Kasane23](/forum/user/76105-kasane23 "View Kasane23's Profile")*

-- HikaShop version -- : 5.0.2
-- Joomla version -- : J4
-- PHP version -- : 8.1.26
-- Browser(s) name and version -- : ALL
-- Error-message(debug-mod must be tuned on) -- : na

I see this was raised in the forum 10 years ago.

I have multiple products and have the add to cart module on each page for user convenience and also the add to cart html on each page. For some reason if I add Module 2 via the HTML code, the Product in the cart is module 1?

Can you shed some light please?

Thank you,

Mark

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

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 652
-
-

3 years 1 day ago -  3 years 1 day ago [\#357174](#357174) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[Add to cart HTML adding wrong product](/forum/27-checkout/907383-add-to-cart-html-adding-wrong-product#357174 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : J4 -- PHP version -- : 8.1.26 -- Browser(s) name and version -- : ALL -- Error-message(debug-mod must be tuned on) -- : na  I see this was raised in the forum 10 years ago.  I have multiple products and have the add to cart module on each page for user convenience and also the add to cart html on each page. For some reason if I add Module 2 via the HTML code, the Product in the cart is module 1?  Can you shed some light please?  Thank you,  Mark")*

Hello,

We process some test directly on your website, in details we try to add the Module 2 **Product** in the cart, and with success.
In order to allow us to better understand can you provide these elements :
- A **step by step** to reproduce your issue (be as detailed as possible)
- Relative settings **screenshot**
**=&gt;** Be **very specific** in your explanation because we have the feeling that we are missing something in your problem, or why this does not correspond to your expectations or your settings.
Please help us clear up any confusion or misunderstanding.

Regards

Last edit: 3 years 1 day ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 5
- Thank you received: 0
-
-

3 years 15 hours ago [\#357194](#357194) by [Kasane23](/forum/user/76105-kasane23 "View Kasane23's Profile")  Replied by *[Kasane23](/forum/user/76105-kasane23 "View Kasane23's Profile")* on topic *[Add to cart HTML adding wrong product](/forum/27-checkout/907383-add-to-cart-html-adding-wrong-product#357194 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : J4 -- PHP version -- : 8.1.26 -- Browser(s) name and version -- : ALL -- Error-message(debug-mod must be tuned on) -- : na  I see this was raised in the forum 10 years ago.  I have multiple products and have the add to cart module on each page for user convenience and also the add to cart html on each page. For some reason if I add Module 2 via the HTML code, the Product in the cart is module 1?  Can you shed some light please?  Thank you,  Mark")*

Thanks for the quick reply.

OK, so - on this page (Module 2) [ www.schematherapyschool.co.uk/workshops/...ema-therapy-workshop](https://www.schematherapyschool.co.uk/workshops/advanced-schema-therapy-workshop)
Go to add to cart button at the end of the page (screenshot attached).

then to the next screen, scroll down and you will see Module 1 has been added and not module 2. (screenshot attached).

So, this only happens on this page and cannot figure out why? Hope that clarifies?

- [ ![Screenshot2023-12-05at05-40-08AdvancedSchemaTherapySkillsforComplexCases-SchemaTherapySchool.png](/forum/attachment/58327) ](/forum/attachment/58327 "...rapySchool.png") [ ](/forum/attachment/58327?download=1 "...rapySchool.png")
- [ ![Screenshot2023-12-05at05-40-38Checkout-SchemaTherapySchool.png](/forum/attachment/58328) ](/forum/attachment/58328 "...rapySchool.png") [ ](/forum/attachment/58328?download=1 "...rapySchool.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNzM4My1hZGQtdG8tY2FydC1odG1sLWFkZGluZy13cm9uZy1wcm9kdWN0P3RtcGw9bWFya2Rvd24=) 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: 86593
- Thank you received: 14334
-
-

3 years 11 hours ago [\#357199](#357199) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add to cart HTML adding wrong product](/forum/27-checkout/907383-add-to-cart-html-adding-wrong-product#357199 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : J4 -- PHP version -- : 8.1.26 -- Browser(s) name and version -- : ALL -- Error-message(debug-mod must be tuned on) -- : na  I see this was raised in the forum 10 years ago.  I have multiple products and have the add to cart module on each page for user convenience and also the add to cart html on each page. For some reason if I add Module 2 via the HTML code, the Product in the cart is module 1?  Can you shed some light please?  Thank you,  Mark")*

Hi,

I can see you manually added the HTML of the add to the cart button to a Joomla article.
That's fine, however in the URL you have in that HTML, you need to change the "1" after the "cid-" to the id of the product you want to be added to the cart.

The module 2 product's id is "2" so you should use 2 instead of 1 after the "cid-" of the add to cart HTML.

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

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

Less More

- Posts: 5
- Thank you received: 0
-
-

3 years 10 hours ago [\#357207](#357207) by [Kasane23](/forum/user/76105-kasane23 "View Kasane23's Profile")  Replied by *[Kasane23](/forum/user/76105-kasane23 "View Kasane23's Profile")* on topic *[Add to cart HTML adding wrong product](/forum/27-checkout/907383-add-to-cart-html-adding-wrong-product#357207 "-- HikaShop version -- : 5.0.2 -- Joomla version -- : J4 -- PHP version -- : 8.1.26 -- Browser(s) name and version -- : ALL -- Error-message(debug-mod must be tuned on) -- : na  I see this was raised in the forum 10 years ago.  I have multiple products and have the add to cart module on each page for user convenience and also the add to cart html on each page. For some reason if I add Module 2 via the HTML code, the Product in the cart is module 1?  Can you shed some light please?  Thank you,  Mark")*

Fantastic, thank you, I knew it would be something simple - was getting confused by item id!

Sorted now, thanks again.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNzM4My1hZGQtdG8tY2FydC1odG1sLWFkZGluZy13cm9uZy1wcm9kdWN0P3RtcGw9bWFya2Rvd24=) 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.058 seconds

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