我想禁用没有图像的产品Magento 1.8。我试过这段代码:
更新 catalog_product_entity_int 设置值 = 2
其中attribute_id = 4
AND entity_id IN (
选择实体 ID
FROM catalog_product_entity_media_gallery
右外连接 catalog_product_entity ON catalog_product_entity.entity_id = catalog_product_entity_media_gallery.entity_id
其中 catalog_product_entity_media_gallery.value 为 NULL
);
但我有这个警报:
字段列表中的列“entity_id”不明确
我该如何解决?
谢谢!