Shopify themes, liquid, logos, and UX
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!
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?
The site is moonryvr.com
thanks!
Hi @will70,
Please try this apps:
<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>
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
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.
Happy to chat if you have any further questions:)
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025