How to hide products from recommendations

How to hide products from recommendations

will70
Excursionist
24 0 3

Hello! I am trying to make it so that I can use a tag such as "hidden" on certain products to keep them from being recommended in the "you may also like" section.

 

I am using Taiga theme.

 

my product-recommendaitons.liquid file starts like this:

 

<product-recommendations data-url="{{ routes.product_recommendations_url }}?section_id={{ section.id }}&product_id={{ product.id }}&limit={{ section.settings.product_limit }}">
{% if recommendations.performed and recommendations.products_count > 0 %}
{%- render 'featured-collection-or-products',
section: section,
products: recommendations.products,
context: 'recommendations' -%}
{%- endif -%}
</product-recommendations>

 

thanks for any advice!

Replies 5 (5)

CodingFifty
Shopify Partner
1018 153 179

Hi @will70,

 

Thank you for reaching out to the Shopify community. I'd be glad to assist you. Could you kindly share your store URL and
password (if it’s password-protected) so I can review it and provide you with an update?

Coding Fifty || Shopify Partner
For any custom section queries, please visit: Fiverr Profile
Found my response useful? Like it and mark as Accepted Solution!
For additional discussions, reach out via: Email ID: codingfifty@gmail.com
will70
Excursionist
24 0 3

The site is moonryvr.com

 

thanks!

CodingFifty
Shopify Partner
1018 153 179

Hi @will70,

 

Please try this apps:

  • Shopify Search & Discovery – Shopify's official app for customizing recommendations and filtering.
  • Boost AI Search & Filter – Provides advanced filtering and AI-powered recommendations.
  • LimeSpot Personalizer – AI-based personalized product recommendations and upselling features.
  • Recom.ai – Smart upsell and cross-sell recommendations customization.
  • Glood.ai Personalized Recommendations – AI-driven personalized recommendations and dynamic product suggestions.

    Or 

 

<product-recommendations data-url="{{ routes.product_recommendations_url }}?section_id={{ section.id }}&product_id={{ product.id }}&limit={{ section.settings.product_limit }}">
  {% if recommendations.performed and recommendations.products_count > 0 %}
    {% assign filtered_products = '' %}
    {% for product in recommendations.products %}
      {% unless product.tags contains 'hidden' %}
        {% assign filtered_products = filtered_products | append: product.id | append: ',' %}
      {% endunless %}
    {% endfor %}

    {% assign filtered_products = filtered_products | split: ',' %}

    {%- render 'featured-collection-or-products',
      section: section,
      products: filtered_products,
      context: 'recommendations'
    -%}
  {%- endif -%}
</product-recommendations>
​

 

Coding Fifty || Shopify Partner
For any custom section queries, please visit: Fiverr Profile
Found my response useful? Like it and mark as Accepted Solution!
For additional discussions, reach out via: Email ID: codingfifty@gmail.com
will70
Excursionist
24 0 3

thank you for the reply but unfortunately that didn't work.. all the reccomendations switch to 19.99 empty product images (with a stock backpack photo) when I just did it

Apurva_CW
Shopify Partner
21 1 6

Hey @will70 
If you'd like to try a no-code approach to fixing this, our app ConvertWise lets you show relatively more accurate recommendations than Shopify's generic recommendations. (Some of our clients have talked about getting better engagement on their product pages, & significantly better cart conversions as well)

Oh, and you can also choose to exclude/hide certain products from being shown.

Apurva_CW_0-1739874724818.png

 

Happy to chat if you have any further questions:)

Apurva Chawla | Founder, ConvertWise
- Was my reply helpful? Please like & mark it as an accepted solution.
- See ConvertWise features in action, on my demo store.
- Try the ConvertWise app for free on your store.