gl636474 / QuickStockAdjust

0 stars 0 forks source link

Add option to set stock level to specified value #2

Open gl636474 opened 4 years ago

gl636474 commented 4 years ago

Next to "Reduce by 1" button, add a textbox and button to set the stock level to a specified amount. Prefill this textbox with current stock level.

gl636474 commented 4 years ago

For editable grid: https://stackoverflow.com/questions/8477792/magento-how-to-submit-an-editable-grid-with-mass-action-or-similar

gl636474 commented 4 years ago

To submit several values of a row in a grid: https://stackoverflow.com/questions/5728842/magento-admin-grid-sending-data-from-action-to-controller

gl636474 commented 4 years ago

See Menu->Catalog->Manage Categories->Category Products Tab. Save button will submit all editable fields. This calls categorySubmit() which is defined in: app/design/adminhtml/default/default/template/catalog/category/edit/form.phtml.

This does not seem to call saveAction() or editAction() in the controller: app/code/core/Mage/Adminhtml/controllers/Catalog/CategoryController.php.

The block app/code/core/Mage/Adminhtml/Block/Catalog/Category/Edit/Form.php does not appear to do anything funky either.