Jump to content

How to add multiple products to the shopping cart at once?


Axari

Recommended Posts

Hi everyone,

 

Prestashop 1.4.5.1 here

 

I have a custom module that allows a user to paste a list of items into a window, and the shop does a lookup and gives them proper add-to-cart buttons.

 

I'd like to add a button that add's their entire list to the cart without them having to click individually though. (like a single-click button that adds multiple items to the shopping cart)

 

I have tried:

http://shopdomain.com/cart.php?add&id_product=11134&id_product=11132&id_product=11129&token=

but it only adds the last item in the string.

 

and...

http://shopdomain.com/cart.php?add&id_product=11134,11132,11129&token=

but it only adds the first item in the string.

 

 

Does anyone know how to do this? Any advise would be appreciated!

Edited by Axari (see edit history)
Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...