chuck_2 Posted August 2, 2013 Share Posted August 2, 2013 (edited) 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 August 2, 2013 by chuck_2 (see edit history) Link to comment Share on other sites More sharing options...
Tintin Ternet Posted December 16, 2013 Share Posted December 16, 2013 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 More sharing options...
mathilde2014 Posted February 12, 2014 Share Posted February 12, 2014 Hi, Did you resolved it? i have the same problem, thanks Link to comment Share on other sites More sharing options...
vekia Posted February 12, 2014 Share Posted February 12, 2014 it's not possible to add many products in one ajax query. in this case it's necessary to run separated query one by one. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now