Hi,
How can I hide a certain product from the recommendations/you may also like section? I’m using the Dawn theme.
Thanks heaps ![]()
Hi,
How can I hide a certain product from the recommendations/you may also like section? I’m using the Dawn theme.
Thanks heaps ![]()
Add a Tag to the Product:
Edit Dawn Theme Code:
{% for recommendation in recommendations.products %}
{% unless product.tags contains 'hidden-recommendation' %}
{% endunless %}
{% endfor %}
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution and click like.
Hi. Thank you for your response. I clicked edit code and searched for product-recommendations.liquid but I don’t have it. Any other name I could search for?
If your dawn theme is 2.0 then the name should be the same. If not then access to the store is required for further investigation.
Thanks
You can try this code by following these steps:
Step 1: Add ‘hidden’ tag for the products you want to hidden.
Step 2: Go to the online store ->Theme ->Edit Code.
Step 3: Find the related-products.liquid file and add code below to the file.
{% unless recommendation.tags contains 'hidden' %}
{% endunless %}
Hopefully it will help you. If yes then Please don’t forget hit Like and Mark it as solution!
Hello, I am using the Palo Alto theme. I’ve tried inserting the snippet, as shown in the correct file, but it is returning an error. Do I need different syntax because of the theme?
Here’s the code appearing on the page:
{%- if block.type == ‘related’ and product.collections.size > 0 -%}
{%- assign animation_delay = forloop.index0 -%}
{%- render ‘product-grid-item’,
product: product,
carousel: true,
columns_mobile: columns_mobile,
animation_delay: animation_delay,
section_width: section_width,
animation_anchor: related_anchor
-%}
{%- endfor -%}
Did this work for you? It didn’t work for me?
Hi, @Smeelah
I can help you with it. So I need to access your store as a collaborator if possible.
Hi @AnneLuo ,
Could you help me with the same problem please? I’m using symmetry theme
Hey @chameleon1 @rebornstudios @Smeelah
Just jumping on this thread here. 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. (Some of our clients have talked about getting better engagement on their product pages, & significantly better cart conversions as well)
You can also choose to exclude/hide certain products from being shown.
Happy to chat if you have any further questions:)
Hi Sandesh, would this work for someone using the enterprise 1.5.2 theme?
and in this part - do we need to every product that has the hidden tag?
off sitewide
July sale — 45% off at checkout, applied automatically. Valid for 60 minutes. One per customer.
Offer ends in