free
web stats

Fill the form & Get Installation Support

Connect With Us





captcha

Connect With Us





captcha

Add custom conditions to product collection in Magento 2

To add custom conditions to product collection, you need to override build() function.  I hope you have a custom module with basic skeletons like registration.php and module.xml file,

Path: app/code/Magemonkeys/FilterSearch/etc/frontend/di.xml

Path: app/code/Magemonkeys/FilterSearch/Plugin/CatalogSearch/Model/Search/IndexBuilder.php

 

Was this article helpful?
YesNo
Fill the below form if you have any Magento programming need.




captcha