Hide certain products, based on tags at auto generated product recommendations

Topic summary

Goal: Exclude certain password-protected products from Shopify’s auto-generated product recommendations (Search & Discovery), ideally via a tag (e.g., “exclude-recommendation”).

Context: These products are already hidden from search and SEO but still surface in recommendations. Manually curating recommendations per product is not feasible.

Feasibility: Confirmed possible, but requires theme code changes. Specifically, edits in Liquid (Shopify’s templating language), likely within the product-recommendations.liquid section that renders recommended products.

Suggested approach: Filter out products with the exclusion tag before rendering. A screenshot (from the Impulse theme) was shared to illustrate the method; implementation details may vary by theme and need to be adapted accordingly. No exact code snippet was provided in the thread.

Guidance: If unfamiliar with Liquid, seek developer assistance at reasonable cost. The helper offered support.

Status: No final code or confirmed resolution posted yet; solution path identified (theme code filter by tag), pending implementation by the store owner.

Summarized with AI on January 3. AI used: gpt-5.

Hi,

We’re using Search and Discovery which does a great job, except we have a new feature in the store. We’re basically hiding certain products behind a password and are hidden from search and SEO. But apperantly they’re still made visable due to the auto generated product recommendations that the app has. I was wondering if it is possible so that products tagged with a certain tag ex. “exclude-recommendation” can be ignored and won’t be suggested by the auto-generation.

It will be too much work to give each product a manual recommendation, so that is out of the

Looking forward if anyone has a solution, thanks!

Hello @JRT1

Welcome to Shopify Community.

Yes, it is possible to hide a tagged product from the product recommendations. But this is not possible without altering the code and if you are not familiar with liquid code then seek help of a developer at reasonable cost to help you.

Let me know if you need one.

Thanks

Hi, yes was aware it needed altering of the code, especially the product-recommendation.liquid code. Was basically just curious of anyone else managed to do this. Thanks!

Yes it can be achieved like this:

The screenshot is from Impulse theme. You can alter the code as per your theme.

Thanks

4 Likes