Jump to content

Adding multiple products using API request


Recommended Posts

Hello,

I'm building a SPA in Angular which uses Prestashop in headless mode and gets all the data it needs using API requests. It is a sort of configurator which enables the user to configure multiple options and then generates a list of products to buy.

I've reached a point where I have an array of products and I'd like now to redirect the user to the Prestashop shop and add those products to his cart. 

I've noticed that I can add a single product by calling https://example.com/it/index.php?controller=cart&add=&id_product=64, but is it possible to somehow add multiple products at once? Or is there an API endpoint which enables me to do this?

Link to comment
Share on other sites

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