jd440 Posted May 23, 2015 Share Posted May 23, 2015 (edited) Hi everyone. For personal needs, I have to manage a stock part of whose amount are on the site, but not available for sale. For that I create fields in the table Stock_available , and I finish developping the front side.But my worries on back-end/administration. For that: I add a field on the product admin on quantity tab. I did an override om class/stock/stockAvailable to let the function setQuantity() save de offsale quantity But my concern is to pass the parameter to the function.Unless I am mistaken setQuantity () is called by the controller AdminProductController through the ajaxProcessProductQuantity () function ajaxProcessProductQuantity public function () { [...] case 'set_qty': [...] StockAvailable :: setQuantity ($ product-> id, (int) Tools :: getValue ('id_product_attribute'), (int) Tools :: getValue ('value')); But where I don't understanding Who and how is called ajaxProcessProductQuantity () function? Hoping my question are clear enough. Edited June 1, 2015 by jd440 (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