When I create many products I wish to add an automatic quantity value and an automatic "In Stock" value.
1 Answer
- What about mass edit after creation?
- alternative is to change the template
app/design/adminhtml/default/default/template/catalog/product/tab/inventory.phtml
, might be the easiest way.
If you want to do it right, you implement your own admin theme and copy over the template.
-
And if I want to add an automatic quantity value and an automatic "In Stock" value just for user role? Commented Jan 29, 2016 at 13:33
-
You could check in the template but there must be a better way... Commented Jan 29, 2016 at 13:52
-
Yes, example if I want to edit "Status" with an automatic value (enabled), I put $form->addValues(array('status'=> '1')); and it's done. Now I try to add value for Inventory but no result... (www\app\code\local\Mage\Adminhtml\Block\Catalog\Product\Edit\Tab\Attributes.php) Commented Jan 29, 2016 at 14:08