Starting version 1.4 you can only perform product updates 'programmatic' only if Magento thinks you are in the admin panel.
If you try to do this from a non-admin page make sure you put this
Mage::app()->setCurrentStore(Mage::getModel('core/store')->load(Mage_Core_Model_App::ADMIN_STORE_ID));before you call
$product->save();
This works for Magento 1.7.0.2?
ReplyDeletethank you
I didn't test it on 1.7.0.2. (the post is more than 2 years old) but it should work.
DeleteYou can test it and post a comment here if it does or doesn't.