开发者

Magento - Bulk attribute value deletion

开发者 https://www.devze.com 2023-03-17 19:19 出处:网络
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.0Truncate the tables:

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`;
0

精彩评论

暂无评论...
验证码 换一张
取 消