Just another WordPress.com weblog

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.

– Meghna Vora

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: