octagonal elf Posted July 22, 2017 Share Posted July 22, 2017 (edited) Hi. I believe Prestashop reduces the stock quantity after every purchases, I wonder which file does Prestashop handles that? I would like to modify in a way that Prestashop reduces quantities for all combinations after every purchases instead of only reduces stock for the selected combinations. Any idea? Update: I found that perhaps I could make changes on OrderDetail.php, whereby the updateQuantity( ) function is used. Now the problem is it involves "id_product_attribute" for the quantity to be updated. How do I make changes so that it updates stock quantity based on "id_product" and ignore "id_product_attribute"? Thanks... $update_quantity = StockAvailable::updateQuantity($product['id_product'], $product['id_product_attribute'], -(int)$product['cart_quantity']); Edited July 22, 2017 by octagonal elf (see edit history) 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