Jump to content

Cart AJAX endpoints


Recommended Posts

Hello everyone,

Recently I just dived in learning PrestaShop module development, however I'm not able to find url endpoints for the cart, I want to create a module that displays mini cart so you can add, remove, update products from the cart using AJAX.

Could anyone guide me where should I look for url endpoints to insert, update quantity, delete product from the cart? I also need to know what paremeters do I have to pass there. I was only able to find the url for adding a product to the cart which goes to /cart by sending these parameters:
 

token:

[generated_token]

id_product:

20

id_customization:

0

qty:

1

 

Any help where I should be looking would be really appreciated.

Edited by Elvinas
Grammar (see edit history)
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...