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

#   add multiple product to cart via url

##

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

9 years 3 months ago [\#273004](#273004) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  *[add multiple product to cart via url](/forum/25-install-update/890940-add-multiple-product-to-cart-via-url#273004 "Hi,  1. Is it possible to add more then 1 product to cart via url? Tried to add &amp;cid-XXX but what it does it adds last product but not all of them.  The url for 1 product looks like this: index.php?option=com&#95;hikashop&amp;ctrl=product&amp;task=updatecart&amp;quantity=1&amp;checkout=1&amp;cid-5098&amp;Itemid=450  How it should be for more then 1 product?  2.   www.hikashop.com/forum/discount-coupon/8...ith-coupon-code.html  This topic talks about adding coupon via url. Is it possible now? How can this be done.  Thanks")* was created by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")*

Hi,

1. Is it possible to add more then 1 product to cart via url? Tried to add &amp;cid-XXX but what it does it adds last product but not all of them.

The url for 1 product looks like this: index.php?option=com_hikashop&amp;ctrl=product&amp;task=updatecart&amp;quantity=1&amp;checkout=1&amp;cid-5098&amp;Itemid=450

How it should be for more then 1 product?

2. [ www.hikashop.com/forum/discount-coupon/8...ith-coupon-code.html](https://www.hikashop.com/forum/discount-coupon/870273-add-to-cart-link-with-coupon-code.html) This topic talks about adding coupon via url. Is it possible now? How can this be done.

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg5MDk0MC1hZGQtbXVsdGlwbGUtcHJvZHVjdC10by1jYXJ0LXZpYS11cmw/dG1wbD1tYXJrZG93bg==) 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)
-

9 years 3 months ago [\#273014](#273014) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[add multiple product to cart via url](/forum/25-install-update/890940-add-multiple-product-to-cart-via-url#273014 "Hi,  1. Is it possible to add more then 1 product to cart via url? Tried to add &amp;cid-XXX but what it does it adds last product but not all of them.  The url for 1 product looks like this: index.php?option=com&#95;hikashop&amp;ctrl=product&amp;task=updatecart&amp;quantity=1&amp;checkout=1&amp;cid-5098&amp;Itemid=450  How it should be for more then 1 product?  2.   www.hikashop.com/forum/discount-coupon/8...ith-coupon-code.html  This topic talks about adding coupon via url. Is it possible now? How can this be done.  Thanks")*

Hello,

The new cart system in HikaShop 3 allow to add several products with a single API call ; but there is no new "entry point" in a controller to provide that feature via an URL.
So you still need to use the legacy mode with " &amp;item[20]=1&amp;item[21]=1 " (where 20 and 21 are product id and 1 the quantity ).
And it will be the same for the coupon ; we work hard to improve the improve the core but we first need to keep a good working retro compatibility.

Regards,

---

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

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

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

9 years 3 months ago [\#273060](#273060) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[add multiple product to cart via url](/forum/25-install-update/890940-add-multiple-product-to-cart-via-url#273060 "Hi,  1. Is it possible to add more then 1 product to cart via url? Tried to add &amp;cid-XXX but what it does it adds last product but not all of them.  The url for 1 product looks like this: index.php?option=com&#95;hikashop&amp;ctrl=product&amp;task=updatecart&amp;quantity=1&amp;checkout=1&amp;cid-5098&amp;Itemid=450  How it should be for more then 1 product?  2.   www.hikashop.com/forum/discount-coupon/8...ith-coupon-code.html  This topic talks about adding coupon via url. Is it possible now? How can this be done.  Thanks")*

Hi,

Can you please clarify?

How the new link should look?

I am trying something like this but it does nothing: index.php?option=com_hikashop&amp;ctrl=product&amp;task=updatecart&amp;checkout=1&amp;Item[5098]=1&amp;Item[5164]=1&amp;Itemid=450

Does it work only if add to cart legacy is turned on? We do use new checkout and add to cart.

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg5MDk0MC1hZGQtbXVsdGlwbGUtcHJvZHVjdC10by1jYXJ0LXZpYS11cmw/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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

9 years 3 months ago [\#273081](#273081) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[add multiple product to cart via url](/forum/25-install-update/890940-add-multiple-product-to-cart-via-url#273081 "Hi,  1. Is it possible to add more then 1 product to cart via url? Tried to add &amp;cid-XXX but what it does it adds last product but not all of them.  The url for 1 product looks like this: index.php?option=com&#95;hikashop&amp;ctrl=product&amp;task=updatecart&amp;quantity=1&amp;checkout=1&amp;cid-5098&amp;Itemid=450  How it should be for more then 1 product?  2.   www.hikashop.com/forum/discount-coupon/8...ith-coupon-code.html  This topic talks about adding coupon via url. Is it possible now? How can this be done.  Thanks")*

Hi,

The URL should be: Code:

index.php?option=com_hikashop&amp;ctrl=product&amp;task=updatecart&amp;checkout=1&amp;data[5098]=1&amp;data[5164]=1&amp;Itemid=450

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

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

9 years 3 months ago [\#273122](#273122) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[add multiple product to cart via url](/forum/25-install-update/890940-add-multiple-product-to-cart-via-url#273122 "Hi,  1. Is it possible to add more then 1 product to cart via url? Tried to add &amp;cid-XXX but what it does it adds last product but not all of them.  The url for 1 product looks like this: index.php?option=com&#95;hikashop&amp;ctrl=product&amp;task=updatecart&amp;quantity=1&amp;checkout=1&amp;cid-5098&amp;Itemid=450  How it should be for more then 1 product?  2.   www.hikashop.com/forum/discount-coupon/8...ith-coupon-code.html  This topic talks about adding coupon via url. Is it possible now? How can this be done.  Thanks")*

Hi,

Are you sure it should work?

I have tried like this: [ www.mywebsite.com/index.php?option=com\_h...cart&amp;checkout=1&amp;data](http://www.mywebsite.com/index.php?option=com_hikashop&ctrl=product&task=updatecart&checkout=1&data)[5098]=1&amp;Itemid=450

Tried with 1 product but nothing happens. It just goes to home page and that's all.

What we trying to have is a link in acymailing email which we will send to users manually who have abandoned cart. So pressing on that link user should go directly to checkout with they products in cart. Later if it's worth it we think about integration which will do the job automatically as there is no such integration in hikashop as for now....

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2luc3RhbGwtdXBkYXRlLzg5MDk0MC1hZGQtbXVsdGlwbGUtcHJvZHVjdC10by1jYXJ0LXZpYS11cmw/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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

9 years 3 months ago [\#273208](#273208) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[add multiple product to cart via url](/forum/25-install-update/890940-add-multiple-product-to-cart-via-url#273208 "Hi,  1. Is it possible to add more then 1 product to cart via url? Tried to add &amp;cid-XXX but what it does it adds last product but not all of them.  The url for 1 product looks like this: index.php?option=com&#95;hikashop&amp;ctrl=product&amp;task=updatecart&amp;quantity=1&amp;checkout=1&amp;cid-5098&amp;Itemid=450  How it should be for more then 1 product?  2.   www.hikashop.com/forum/discount-coupon/8...ith-coupon-code.html  This topic talks about adding coupon via url. Is it possible now? How can this be done.  Thanks")*

Hi,

Yes. I've just tested on my end with the URL Code:

http://localhost/joomla36/index.php?option=com_hikashop&amp;ctrl=product&amp;task=updatecart&amp;data[35]=1&amp;add=1

where 35 is the id of my product and it works just fine.

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

- **[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")**
- [![kyratn's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/38342-kyratn "View kyratn's Profile") Topic Author
- [ Offline](/forum/user/38342-kyratn)

Less More

- Posts: 1119
- Thank you received: 114
-
- [](http://kyra.lt)
-

9 years 3 months ago [\#273218](#273218) by [kyratn](/forum/user/38342-kyratn "View kyratn's Profile")  Replied by *[kyratn](/forum/user/38342-kyratn "View kyratn's Profile")* on topic *[add multiple product to cart via url](/forum/25-install-update/890940-add-multiple-product-to-cart-via-url#273218 "Hi,  1. Is it possible to add more then 1 product to cart via url? Tried to add &amp;cid-XXX but what it does it adds last product but not all of them.  The url for 1 product looks like this: index.php?option=com&#95;hikashop&amp;ctrl=product&amp;task=updatecart&amp;quantity=1&amp;checkout=1&amp;cid-5098&amp;Itemid=450  How it should be for more then 1 product?  2.   www.hikashop.com/forum/discount-coupon/8...ith-coupon-code.html  This topic talks about adding coupon via url. Is it possible now? How can this be done.  Thanks")*

Hi,

It works. The &amp;add=1 was missing....

Thank you

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

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

[](#top)
