I want to hide products with certain attribute values. If I simply filter the collection in catalog, then faceted data for the filters will not match resulting products.
Igor Minyaylo said that recommended extension point is the addFieldToFilter method in fulltext collection. Though, I can't specify the condition type and therefore use the "not in" or rather "not match" filter.
Fulltext search might lose it's speed with such conditions, so I'm curious what's the recommended way to exclude some products.
P.S. I'd like to avoid changing filter type in the layered navigation.
Add a comment
|
1 Answer
I ended up modifying select with left join after applyFilters method in the CatalogSearch's FilterMapper class.
-
could u please guide me how to do that, if possible could u please share the code Commented Aug 26, 2019 at 18:45