We need to hide certain products on both pages, Category/Search result page. We have an attribute called “discontinued” of Yes/No type. If it is set to yes, then products should not be in the category page and search result page.
Only when search with sku, it should go to the product page. For now, when we search with sku, it goes to the product page, because we enable Goto product page if only one search result.
We just want to remove them from category and search result page.
Please reply.