Jump to content

Changing the 'Add to cart' process


jamiedevine

Recommended Posts

Hi,

 

I'm trying to adapt the way Prestashop adds items to the cart to work with some customisations i've made.

 

I've got my product page listing out each combination for that product in a table, next to each combination I have a quantity field.

 

When the customer clicks 'Add to cart' I need PrestaShop to add every combinations that has a quantity greater than 0 to the cart in one go.

 

When the 'Add to cart' button is pressed I know the ID and quantity of each combination, I just need to loop through them and add each one to the cart.

 

Where is the code that handles this?

 

Thanks

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