How to exclude specific category id in catalog search result?
-
16-10-2019 - |
Question
I have to some change in magento catalog search result. I have to exclude specific category Id in catalog search result. I had tried in many way but not getting proper result. Please help me asap.
Thank you in advanced !!
Solution
For each product there is an attribute called Visibility
with 4 different values:
- Not visible individually - this means the products will not appear in the catalog
- Catalog - the product will appear only when browsing the catalog
- Search - the product will appear only in search results
- Catalog & Search - the product will appear in search result and while browsing the catalog
In conclusion, if you set the visibility of the products in your specific category to Catalog
they won't appear on search results.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange