I've overrided the ListProduct.php file for the catalog, to show product based on customer attribute.

But now I have the wrong number of element in the toolbar (I have 3 products displayed but still the "unfiltered" number in the toolbar).

I've added condition in initializeProductCollection function


Found the answser :

Best solution seems to be to override IndexBuilder Plugin\CatalogSearch\Model\Search

see : How to update category page with custom filters, and also layered navigation, Magento 2.1

This site is temporarily in read only mode and not accepting new answers.

Not the answer you're looking for? Browse other questions tagged .