magento产品可视性

Ant*_*ore 4 mysql magento

mysql是否有办法将所有产品可见性设置为目录,搜索?

Jon*_*Day 10

打开eav_attribute桌子,找到attribute_code= visible 的行.注意attribute_id,最有可能是85.另请注意backend_type= int.这告诉您该属性存储在catalog_product_entity_int.所以,现在你可以运行:

update `catalog_product_entity_int` set value = 4 where attribute_id = 85
Run Code Online (Sandbox Code Playgroud)

(当然假设attribute_id是85!)

确保在运行数据库之前备份数据库.

HTH,JD