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

#   Ajax update and multiple cart modules

##

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

Less More

- Posts: 7
- Thank you received: 0
-
-

11 years 6 months ago [\#198510](#198510) by [bpm](/forum/user/5224-bpm "View bpm's Profile")  *[Ajax update and multiple cart modules](/forum/3-bug-report/876362-ajax-update-and-multiple-cart-modules#198510 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1  I display cart on multiple modules on the same page (a small cart on page and a full cart on off-canvas). When I click on frontend 'add to cart module' button, with ajax update enabled, only the first cart is updated by ajax.  I suspect that the ajax update use the cart id (the same for all displayed modules) and so update only the first cart. Probably this is not a common request but does Hikashop support ajax update and multiple cart modules displayed on the same page?")* was created by *[bpm](/forum/user/5224-bpm "View bpm's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1

I display cart on multiple modules on the same page (a small cart on page and a full cart on off-canvas).
When I click on frontend 'add to cart module' button, with ajax update enabled, only the first cart is updated by ajax.

I suspect that the ajax update use the cart id (the same for all displayed modules) and so update only the first cart.
Probably this is not a common request but does Hikashop support ajax update and multiple cart modules displayed on the same page?

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 6 months ago [\#198529](#198529) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Ajax update and multiple cart modules](/forum/3-bug-report/876362-ajax-update-and-multiple-cart-modules#198529 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.1  I display cart on multiple modules on the same page (a small cart on page and a full cart on off-canvas). When I click on frontend 'add to cart module' button, with ajax update enabled, only the first cart is updated by ajax.  I suspect that the ajax update use the cart id (the same for all displayed modules) and so update only the first cart. Probably this is not a common request but does Hikashop support ajax update and multiple cart modules displayed on the same page?")*

Hi,

You're right, the current javascript does not handle multiple cart modules in the page.
But it is planned that the add to cart system will be improved and the javascript will be improved so it will handle multiple cart modules and a lot of other good stuff. Unfortunately, I can't provide any schedule for the moment.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

[](#top)
