Chris
Chris

Reputation: 1731

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 multiple imports.

Upvotes: 2

Views: 9135

Answers (3)

kolucciy
kolucciy

Reputation: 11

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 the EAV tables for a specific store view, only for those attributes that have the checkbox you injected earlier with core_block_abstract_to_html_before set as checked.

Original answer: https://magento.stackexchange.com/a/45229/16724

Upvotes: 0

limex
limex

Reputation: 317

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.

Upvotes: 6

Andrey Korolyov
Andrey Korolyov

Reputation: 996

Just remove record from product_entity_[attirubte_type] for the product_id, attribute_id and store_id.

Upvotes: 3

Related Questions