Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.
5 votes

Multi Conditionals (OR and AND inside AND) in addAttributeToFilter

If you want to include AND with the combination of OR then $colemanManufacturerSku = Mage::getResourceModel('catalog/product_collection') ->addAttributeToSelect('sku') ->...
user avatar
1 vote
Accepted

Set order for product Collection in magento2

Use setOrder as below to sort product collection $productSkuString = 'O, C, D, A, F, S'; $collection = $this->collectionFactory->create() ->addAttributeToSelect('*') ->...
user avatar
  • 765
1 vote

Multi Conditionals (OR and AND inside AND) in addAttributeToFilter

Or condition using addFieldToFilter $collection->addFieldToFilter ( array('email','mobile'), array($emaiId,$mobNum) );
user avatar
  • 53

Only top scored, non community-wiki answers of a minimum length are eligible