Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi, i am not familiar with coding, try to display "size" for every products, anyone can help?
am not sure if you are still looking for a solution but I have applied underneath in my case in order to add size selector in collection pages
{% unless product.has_only_default_variant %}
{% for option in product.options_with_values %}
<div class="selector-wrapper js product-form__item">
<label {% if option.name == 'default' %}class="label--hidden"
{% endif %}for="SingleOptionSelector-{{ forloop.index0 }}">
{{ option.name }}
</label>
<select style="display:block" class="single-option-selector single-option-selector-{{ section.id }} product-form__input" id="SingleOptionSelector-{{ forloop.index0 }}" data-index="option{{ forloop.index }}">
{% for value in option.values %}
<option value="{{ value | escape }}"{% if option.selected_value == value %} selected="selected"{% endif %}>{{ value }}</option>
{% endfor %}
</select>
</div>
{% endfor %}
{% endunless %}
include that into ''product-grid-item.liquid'' with underneath syntax
{% include 'snippet_name'%}
by the way, I am using supply theme...
goog luck
Hi, I have the same problem. Using Artisan theme. Sizes show on the individual product landing pages but don't show on the product grid or collections. This is a major issue because we are consignment - we only have one of each item we are posting, so the size is one of the most important descriptors. I copied the code above and saved as snippet, but I don't know which liquid file to paste it into. Here is my url: https://topdrawera2.com/collections/shirts-blouses/ Any direction would be much appreciated. Thank you!
Hi Brittany,
We have an app called Size Swatch which can assist to display the size under the product thumbnail on your collection page for you.
It allows you to customise how the size looks in terms of size, shape and color.
https://apps.shopify.com/product-size-swatch
Let me know if you have any questions, happy to help.
Amy
You can use the app Swatch specialist: https://apps.shopify.com/swatch-specialist
The app and the support is amazing!
Hey there, if you are looking to display infinite product variants on the collection page and want to show the variant as a separate product and with add to cart option on the variant you can try the Variator with a free trial option
With the Variator Shopify app, you can effortlessly integrate and display product variants on collection pages based on size, color, and pricing. With the Variator Shopify app, you can effortlessly incorporate and display product variants based on size, color, and pricing.
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024