Product bundle / 2 and more Products with one clic

  • Posts: 28
  • Thank you received: 0
10 years 5 months ago #184282

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6

Hello everybody and merry xmas!

I am facing a problem ... i am using the "add to cart" html link.
Now i want and have to to the following thing.

When i click the button, it has to add 2 products at the same time.

Is it possible to do something like that?
Can i type "http:/...option=com_hikashop&ctrl=product&task=updatecart&quantity=1&checkout=1&product_id=2-AND-ONE-MORE"?

Thank u very much!

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

  • Posts: 28
  • Thank you received: 0
10 years 5 months ago #184308

a friend of mine made a great workaround with JS.

If there is any solution in hika, it woould be nice to know. if there is not .... no problem :)

Thanks and merry xmas!

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

  • Posts: 83933
  • Thank you received: 13590
  • MODERATOR
10 years 5 months ago #184296

Hi,

Here is a URL for that:
www.hikashop.com/forum/4-how-to/9701-upd...f-quantity.html#9724
XX is the id of the first product
0 the quantity of the first product to add
YY is the id of the second product
1 the quantity of the second product to add

The following user(s) said Thank You: pixeldraft

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

  • Posts: 28
  • Thank you received: 0
10 years 5 months ago #184386

Thank u very much!

Now i am facing one more problem with the add to cart link.
If i want to add the same product to the cart again, the qty is still 1.

Thanks :)

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

  • Posts: 83933
  • Thank you received: 13590
  • MODERATOR
10 years 5 months ago #184403

Hi,

Add the attribute &add=1 to the URL and the quantity of the products in the URL will be added to the ones in the cart instead of replacing them.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum