skip to Main Content

Magento 2.2 product collection factory not returning all products

I'm trying to get all products using collectionFactory in a custom module like this: $products = $this->_productCollectionFactory->create(); ->addAttributeToSelect('*'); where _productCollectionFactory is initialized in the __construct() as an instance of MagentoCatalogModelResourceModelProductCollectionFactory $productCollectionFactory, the problem is that, without any applied filter, the…

VIEW QUESTION

Magento2 OR query on collection

We have been trying to make a query when a user apply some filters on front end. We are trying to make OR query in products collection: tried the following but none of them work $collection->addAttributeToFilter(['web_mobile_filter','offer_group_name_value'], [ ['in' => '1122'],…

VIEW QUESTION
Back To Top
Search