Mass Update Magento Field to "Use Default Value"
Is there a way that I can reset a bunch of magento products for a particular store view back to "Use Default Value" It seems once you set the store specific data there is no easy way to unset so that it receives the default data. This is causing me to have to do multip开发者_高级运维le imports.
I know you want to change "a bunch of products" ... Just for the usecase someone want to get rid of the store-view-specific values for ALL products: Just cycle the scope of the attribute from 'Store View' to 'Global' an back to 'Store View' again.
Just remove record from product_entity_[attirubte_type] for the product_id, attribute_id and store_id.
You can use:
core_block_abstract_to_html_before
adminhtml
event to add the required checkboxes for every attribute in admin mass update form;- then
catalog_product_attribute_update_before
event to delete the values from theEAV
tables for a specific store view, only for those attributes that have the checkbox you injected earlier withcore_block_abstract_to_html_before
set as checked.
Original answer: https://magento.stackexchange.com/a/45229/16724
精彩评论