In magento 1.9 I need to set the default qty value to 100 and Stock Availability to blank while creating a duplicate product.
So when a user duplicates a product, he should see qty value as 100 and Stock Availability as blank within inventory tab.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
To achieve this I have copied the following file
And added the following code inside
duplicate() method just before
$newProduct->setStockData( array( 'is_in_stock' => 3, 'qty' => 100, ) );