Send multiple products using task=updatecart

  • Posts: 2
  • Thank you received: 0
8 years 8 months ago #232132

-- 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.

Last edit: 8 years 8 months ago by VonKelemen. Reason: More description

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

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
8 years 8 months ago #232135

Hi,

You can use such link:

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.

  • Posts: 2
  • Thank you received: 0
8 years 8 months ago #232195

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.063 seconds
Powered by Kunena Forum