Hide Products in ProductCollection => Problem with Pagination and Filters
I would like to hide some articles in a certain category. So far I have solved this using a plugin: di.xml: <type name=“MagentoCatalogModelLayerCategoryCollectionFilter”> <plugin sortOrder=“1” name=“Vendor_Modulename::aroundProductCollection” type=“VendorModuleNamePluginCatalogCollectionFilter”/> </type> <?php namespace VendorModuleNamePluginCatalog; use MagentoCatalogModelLayerCategoryCollectionFilter as CategoryCollectionFilter; use MagentoCatalogModelResourceModelProductCollection as ProductCollection; use… Read More »Hide Products in ProductCollection => Problem with Pagination and Filters