How do I stop products from showing in the 'You May Also Like" on Enterprise 1.5.2

Topic summary

A user is trying to exclude specific products from the “You May Also Like” recommendations section on their Shopify Enterprise 1.5.2 store, but existing solutions aren’t working.

They’ve attempted the common approach of:

  • Adding a unique tag (like “no-recommend”) to products in the admin
  • Editing theme files (product-recommendations.liquid or related-products.liquid)
  • Using Liquid code conditions like {% unless product.tags contains 'no-recommend' %} to filter tagged products

Despite following these steps, the exclusion isn’t functioning as expected. The user has shared a PDF of their current snippet code for review.

Status: The issue remains unresolved and awaits troubleshooting assistance or alternative solutions specific to their theme configuration.

Summarized with AI on October 28. AI used: claude-sonnet-4-5-20250929.

I’ve seen replies like this but nothing seems to be working:

Go to your Shopify admin, navigate to Products, and select the products you want to exclude; add a unique tag like “no-recommend” to each one. Then, in Online Store > Themes, click “Customize” on your Impact theme, find the Product page settings, and look for the “Product recommendations” section (it might be under a block like “Related products”). edit the product-recommendations.liquid or related-products.liquid file in your theme code (Online Store > Themes > Actions > Edit Code), and add a condition like {% unless product.tags contains ‘no-recommend’ %} to exclude them.

Have attached a pdf of our snippet code: