magento colloction query

Solutions on MaxInterview for magento colloction query by the best coders in the world

showing results for - "magento colloction query"
Roy
24 Aug 2017
1$object->getCollection()
2->addStatusFilter(1)
3->addPriorityFilter('ASC')
4->addFieldToFilter('main_table.from_date', [['lteq' => $now], ['null' => true]])
5->addFieldToFilter('main_table.to_date', [['gteq' => $now], ['null' => true]])
6->addFieldToFilter('main_table.column', ['eq' => 87])
7->addCustomerGroupFilter($customerGroup)
8->addStoreFilter([$this->_storeManager->getStore()->getId()],false );