How to load new product collection in Magento 2 something like
I want all simple product which is not associate with configurable which mean it has no parent.
Or any other approach ?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
I have added following join to the product collection query
$collection->getSelect()->joinLeft( 'catalog_product_super_link', 'e.entity_id = catalog_product_super_link.product_id' )->where ("catalog_product_super_link.product_id IS NULL");
and got the desired collection.