News

How to show title name if 1 variant (with multiple options)2015-02-04

So you have a jacket that's color is navy and size is medium and you want to show m/navy ?

You can head over to edit the html/css of your theme and look for templates/product.liquid

Scroll down till you see something like this

Now in between

 <div id="product-variants">
</div><!-- product variants -->

Paste this

{% if product.options.size == 1 %}                                
{% else %}
            {% for variant in product.variants %}
            {{ variant.title }}
               {% endfor %}                    
{% endif %}

End result will look something like this

You should now see your option names above your price.

 

 

 

 

No comments

Please note, comments must be approved before they are published