- Posts: 2
- Thank you received: 0
Send multiple products using task=updatecart
- VonKelemen
-
Topic Author
- Offline
Less
More
10 years 8 months ago - 10 years 8 months ago #232132
by VonKelemen
Send multiple products using task=updatecart was created 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&ctrl=product&task=updatecart&quantity=1&checkout=1&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.
-- 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&ctrl=product&task=updatecart&quantity=1&checkout=1&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
Replied by nicolas on topic Send multiple products using task=updatecart
Hi,
You can use such link:
where XXX and AAA are ids of products and YYY and BBB are the quantities you want to add for each product.
You can use such link:
Code:
index.php?option=com_hikashop&ctrl=product&task=updatecart&checkout=1&data[XXX]=YYY&data[AAA]=BBB
The following user(s) said Thank You: VonKelemen
Please Log in or Create an account to join the conversation.
- VonKelemen
-
Topic Author
- Offline
Less
More
- Posts: 2
- Thank you received: 0
10 years 8 months ago #232195
by VonKelemen
Replied by VonKelemen on topic Send multiple products using task=updatecart
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.
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