It is required to set current store for saving data.
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
$product
=
new
Mage_Catalog_Model_Product();
$product->setData($data);
->setData(
$data
);
$product->save();
->save();
No comments:
Post a Comment