Jump to content

Adding multiple products and quantities to Prestashop’s Cart


Todor Inchovski

Recommended Posts

1 minute ago, tdsoft said:

Prestashop System supported both mode: Grid & List in category page

see: https://postimg.cc/BjVtFvcL

Would you like set List as Default mode when open a category page, yes?

I have already set list as default mode on my shop category page. What I am trying to do is add the buttons that I have encircled in the picture below. Their purpose is: I check two or more products and then click the button at the bottom "Add selected to cart" and they are added to the cart all at once.

cart.jpg

Link to comment
Share on other sites

  • 1 year later...
  • 1 year later...
  • 2 years later...
  • 4 weeks later...

Hello,

I built a free module that does allow you to add multiple products to the cart (currently, the quantity will always be 1). It has only been tested in PrestaShop 8 with the base theme.

The flow is pretty simple. If the module can find products in a page, it will add a checkbox for each one of them and a button for adding them to the cart. Once clicked, the button will do an AJAX request to a controller that will add the products to the cart.

Most of the logic is built using TypeScript. Let me know if you have any questions.

Here is the GitHub link: https://github.com/andreihumulescu/ps-add-multiple-products and here is the zip that you can upload in your admin: https://github.com/andreihumulescu/ps-add-multiple-products/releases/tag/v1.0.0

If you find any issues, just let me know and I'll address them in a future version.

Edited by Andrei H
Broken link (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...