I have a setting with several repositories, and I set the product attribute for a particular store to use the "Use default value" parameter - (that is, use the value in the repository view) as follows:
$_product = Mage::getModel('catalog/product'); $_product->load($productId); $_product->setStoreId($storeId)->setName(false)->save();
This sets the Name attribute for storeId for $ productId to use "Use default value"
Given that I have a lot of attributes that I'm trying to use:
Mage::getSingleton('catalog/product_action')->updateAttributes(array($productId), array('name' => false), $storeId);
But this does not mean that the "Use default value" checkbox is true.
How can I use -> updateAttributes to set the repository value to use the "Use default value" parameter?
Screenshot:
source share