New answers tagged

0 votes

Category collection with filter Magento2

Please try the code below to retrieve all categories with filtered custom attributes: protected $categoryCollectionFactory; public function __construct( .............................................
Msquare's user avatar
  • 9,033
1 vote

How to filter customer collection by custom field added by db_schema xml file to customer_entity table in Magento 2?

You should try using addFieldToFilter instead of addAttributeToFilter because you are working with the database table field rather than a customer attribute. Please try it once: $customer = $this->...
Deepak MageDivine's user avatar

Top 50 recent answers are included