Magento - Bulk attribute value deletion
I need to delete values for image
, small_image
, and thumbnail
attributes in all products. How can I go about doing开发者_如何学Python this in Magento? I'm running Magento 1.5.1.0
Truncate the tables: catalog_product_entity_media_gallery
and catalog_product_entity_media_gallery_value
if you are using a Flat catalog you'll need to rebuild it after doing such. System->Index Management.
SQL (run this at your own risk, ive not tested it):
TRUNCATE `catalog_product_entity_media_gallery`;
TRUNCATE `catalog_product_entity_media_gallery_value`;
精彩评论