Jump to content

Add multiple products from external url


Recommended Posts

Hi,

I'm trying to add products to prestashop cart from an external url, I have achieved doing it for only one product:

http://domainshop/cart.php?add&id_product=3&qty=2

 

But I would like to do something similar but for multiple products with their quantities. Is it possible? Something like this?

 

http://domainshop/cart.php?add&id_product=3&qty=2&id_product=1&qty=2

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

  • 4 months later...

Hi,

I'm searching solution for this problem too, I've tried to use array formating :

/cart.php?add&qty[]=1&id_product[]=16&id_product_attribute[]=0&qty[]=1&id_product[]=15&id_product_attribute[]=138&qty[]=1&id_product[]=19&id_product_attribute[]=145

but it doesn't work... :-(

Have you found a solution?

Link to comment
Share on other sites

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