This modification adds product sizes to the product grid/collection page of your Shopify store.
product-card-grid.liquid
file and add the following code at the specific place where you want to show the sizes, here we’ve added the after the price. Price code looks like this {% include 'product-price', variant: product.selected_or_first_available_variant %}
:{% if collection.template_suffix == "available-size" %} <p> {% for option in product.options %} {% if option == 'Size' %} {% if product.options_with_values[0].name=="Size" %} {% for variant in product.variants %} {{ variant.option1 }} {% endfor%} {% elsif product.options_with_values[1].name=="Size" %} {% for variant in product.variants %} {{ variant.option2 }} {% endfor%} {% else %} {% for variant in product.variants %} {{ variant.option3 }} {% endfor%} {% endif %} {% endif %} {% endfor %} </p> {% endif %}
collection.available-size
, it’ll enable the available sizes in the product grid in the collection pageImagine! Seamlessly connecting the vast customer base of eBay with the robust features of your…
Let’s face it. Running an online store requires unwavering discipline. Juggling multiple tasks simultaneously is…
There’s no denying that Shopify has taken over the world. The ecommerce platform contributes to…
It’s true. Every marketing strategy has one common objective: to drive maximum conversion rates. If…
*Sigh*. Are you tired of trying out different methods of making money online? Hear it…
When driving traffic to your Shopify store, Search Engine Optimization (SEO) is the most affordable…