1
是否有一種簡單的方法可以拉出/查看與類別或可配置產品無關的所有產品的列表?Magento找到孤兒產品
是否有一種簡單的方法可以拉出/查看與類別或可配置產品無關的所有產品的列表?Magento找到孤兒產品
我相信這個SQL查詢會幫助你。
select
type_id,sku
from catalog_product_entity a
left join catalog_category_product cp on cp.`product_id` = a.entity_id
left join catalog_product_relation cpr on cpr.child_id = a.entity_id
where
cp.product_id is null
and cpr.parent_id is null
and a.type_id != 'configurable' -- per ben below
需要排除可配置...和a.type_id!='可配置' – benmarks 2012-03-06 04:06:52