I’m using it in my current theme but the problem is that “include” is deprecated. How can I show the variant options in the product-grid-item.liquid using render instead of include?
The code didn’t work when I changed include for render.
Thank you so much for this snippet! It worked perfectly for me.
Would you know how to get it to display a shortened version of the variant? Ex: “Small” → “S”
I tried using {% if variant.options == “small” | replace: “small”, “S” %} or {% if variant.options contains “small” | replace: “small”, “S” %} but it didn’t work.
Hi. How are you? I used your code on theme minimal and it worked. But minimal dont have so many functions for the first page… i tried to use the code in another theme but it doesnt work. Like Dawn and DEBUT.
I used the code you shared with us in Minimal theme and it worked perfectly, but i would like to update for Dawn Theme, but it doesn’t work. Do you know any code that can help me?
@Silverclouding This code is exactly what I was looking for, but for some reason I have an extra circle on each item. Do you know what I need to do to get rid of it?
Can you elaborate on this? where do I paste the above snippet once created? I see you say between collection title and price but I’m not finding exactly where it needs to go… in assets? templates? layouts? snippets? just a little lost on where it should be placed
I’m still not finding it unfortunately. I’m using the Craft theme so i’m not sure if that has anything to with it. Only finding main collection product grid.liquid. Spent too many hours on this lol. I’m prob gonna just leave it be at this point
I have the same issue with the Stiletto theme.
I was wondering if you could please help me too? I am a novice at Shopify, and I’m not tech savvy with coding. What you’ve done above is exactly what I’d like help with please.