Product save() not working.Giving Fatal Error

0
35
views
Advertisement

While saving product

$product->save();

If u get Fatal Error: Uncaught exception ‘Exception’ with message …

Than just put below code in your file and try to set store id:

Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);

This will solve your problem and will work like charm..

If this post will be helpful to you don’t forget to comment on this post.

– Mayank Zalavadia