Question

Is it possible to list all configurable products either on page or in SQL most likely to display any configurable products that have NO associated simple products on them.

For example - I have ~ 1,000 configurable products and to ensure none have been missed out having simple products assigned to them I want to be able to check without going through each one.

Also - the other way round is it possible to list simple products that have not been added to any configurable products at all?

Was it helpful?

Solution

You can use below mysql query to get all the configurable products which are not associated with any simple products.

SELECT entity_id FROM `catalog_product_entity`
WHERE `type_id` = 'configurable' AND entity_id NOT IN(
    SELECT DISTINCT parent_id FROM catalog_product_super_link
);

OTHER TIPS

to view info about configurable product's associated simple products this should give you some guidance.

http://www.magentocommerce.com/boards/viewthread/19867/

Also you can check this more recent article : http://magentocommerceblog.blogspot.com/2012/08/how-to-get-all-associated-products-to.html

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top