简体   繁体   中英

How to quickly assign an attribute value to all products in a category, in Magento

I would like to quickly update all products assigned to a particular category in Magento with a particular attribute/value. For example, all products in category Bed > Designer Bedding would have their google_product_category attribute value set to 2541. Anyone know how I could do this?

我不完全确定您的WHERE子句将基于您的问题,但是您可以使用类似于以下内容的内容(并根据需要进行调整)

UPDATE [table] SET google_product_category = 2541 WHERE category = 'Bed'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM