How to get product collection by multiple attributes?
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
You can use
to get product collection and filter by multiple attribute like this:
$productCollection = $this->_productFactory->create()->getCollection()->addAttributeToSelect('*')->addFieldToFilter('sku',array('eq' => $styleCode));
Use "Dependency Injection" method to implement this, Please reply if need more clarification,