jennywill Posted July 1, 2015 Share Posted July 1, 2015 I want to see the code that executes when this is called. Hook::exec('actionUpdateQuantity',array('id_product' => $id_product,'id_product_attribute' => $id_product_attribute,'quantity' => $quantity) Anyone know where it is? I have been digging for hours, and I can not find it in Prestashop 1.5.6.2 I am specifically looking for all of the places in the db that are updated when quantity is changed. I have found updates and inserts to: ps_product ps_cart_stock_available ps_cart_product_shop ps_cart_log Not using advanced stock management. Thank you so much to anyone that can point me in the right direction. After digging so long the lines start to blur and run together. Link to comment Share on other sites More sharing options...
thepan Posted July 1, 2015 Share Posted July 1, 2015 Hey This hook calles the funtion "updateQuantity" of the "StockAvailabel" class. See HERE. You should be able to go from there. Link to comment Share on other sites More sharing options...
jennywill Posted July 1, 2015 Author Share Posted July 1, 2015 (edited) Thank you very much for a quick reply. I do see that, but if anyone can point me to the actual SQL that is executed to store the params in the db, that would be even better as I continue to dig. I know about ps_product ps_cart_stock_available ps_cart_product_shop ps_cart_log but I am missing something somewhere........BTW not using any attributes so my product_attributes tables are empty. Much appreciated. Edited July 1, 2015 by jennywill (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