Shopify themes, liquid, logos, and UX
Hello all,
Hope you are well !
I was looking how to remove certain items from "you may also like" section and after some digging I managed to do find this :
- I added a tag "AVIS" and put this code :
{% for recommendation in recommendations.products %}
{% if recommendation.tags contains "AVIS" %}
{% continue %}
{% else %}
<li class="grid__item">
{% render 'card-product',
card_product: recommendation,
media_aspect_ratio: section.settings.image_ratio,
image_shape: section.settings.image_shape,
show_secondary_image: section.settings.show_secondary_image,
show_vendor: section.settings.show_vendor,
show_rating: section.settings.show_rating
%}
</li>
{% endif %}
{% endfor %}
It did remove the undesired items. However, it's now blank :
The idea would be to keep the 4 you may also like items but do not use the ones that contain "AVIS"
Custom Chip Bags – Hint of Happiness
password : seiyud
Thank you so much in advance for your help !
Karla
@Karla8 it is showing 4 on product page
Hello Suyash1,
It looks like it only affects this item :
Custom Chip Bags – Hint of Happiness
When I check other products, I indeed have all 4 🤔
Find Global Growth Opportunities For Your Business with Shopify AcademyLearn how to exp...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025