Skip to main content

Send multiple products using task=updatecart

10 years 8 months ago - 10 years 8 months ago #232132 by VonKelemen
-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.4.45

Hi
I want to send multiple products using task=updatecart from my customized page.
<a class="hikashop_html_add_to_cart_link" href="index.php?option=com_hikashop&amp;ctrl=product&amp;task=updatecart&amp;quantity=1&amp;checkout=1&amp;product_id=1"> Add to cart</a>

I mean, I want to send product_id=1 , product_id=2, product_id=3 ..... to hikashop cart by a single anchor tag. How can I achieve this ?

OR

I can add one product at a time, but it should not redirect to checkout page on clicking Add to cart.
Last edit: 10 years 8 months ago by VonKelemen. Reason: More description

Please Log in or Create an account to join the conversation.

10 years 8 months ago #232135 by nicolas
Hi,

You can use such link:
Code:
index.php?option=com_hikashop&ctrl=product&task=updatecart&checkout=1&data[XXX]=YYY&data[AAA]=BBB
where XXX and AAA are ids of products and YYY and BBB are the quantities you want to add for each product.
The following user(s) said Thank You: VonKelemen

Please Log in or Create an account to join the conversation.

10 years 8 months ago #232195 by VonKelemen
Hi Nikolas

Thanks for your reply and solution you sent is working perfectly, I am Deepak Komre (a developer) writing on behalf of your customer.

Please Log in or Create an account to join the conversation.

Time to create page: 0.050 seconds
Powered by Kunena Forum