How can I find all products without images in Magento?

前端 未结 10 714
Happy的楠姐
Happy的楠姐 2020-12-18 03:39

I have some thousand products and want to find all products without an image. I tried to search for (no image) in the admin products grid, but no result. How can I make an S

10条回答
  •  不思量自难忘°
    2020-12-18 04:03

    You can use this SQL just to see which product doesn’t have images:

    SELECT * FROM catalog_product_entity_media_gallery RIGHT OUTER JOIN catalog_product_entity ON catalog_product_entity.entity_id = catalog_product_entity_media_gallery.entity_id WHERE catalog_product_entity_media_gallery.value is NULL
    

    Good Luck!

提交回复
热议问题