Set default product values when adding new product in Magento 1.7

前端 未结 2 1508
无人及你
无人及你 2020-12-19 10:47

I have created an Observer.php for the event catalog_product_new_action



        
2条回答
  •  清歌不尽
    2020-12-19 11:39

    It looks like you'll need to work with the actual stock item object which is set as a property on the product object.

    See Mage_CatalogInventory_Model_Observer::copyInventoryData()[link] for a reference of the stock item properties.

提交回复
热议问题