jamiedevine Posted May 7, 2013 Share Posted May 7, 2013 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 More sharing options...
sadlyblue Posted May 7, 2013 Share Posted May 7, 2013 You need to edit the controller/front/CartController.php There, do the changes to this function processChangeProductInCart() Just today i did a few changes to this also. But it was a simpler change. Link to comment Share on other sites More sharing options...
jamiedevine Posted May 8, 2013 Author Share Posted May 8, 2013 Thank you, i'll have a look in there and see how it all works. 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