Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% if product.variants.size > 1 %}
- {% if product.options[1] %}
- {% assign used = '' %}
- <div class="color-variant">
- <span><b>{{ product.options[1] }} :</b></span>
- <select id='select-one' onchange="letsDoThis()">
- {% for variant in product.variants %}
- {% unless used contains variant.option2 %}
- <option {% if variant == product.selected_or_first_available_variant %} selected="selected" {% endif %} data-id={{variant.id}}>{{ variant.option2 }}</option>
- {% capture used %}{{ used }} {{ variant.option2 }}{% endcapture %}
- {% endunless %}
- {% endfor %}
- </select>
- {% endif %}
- </div>
- {% if product.options[0] %}
- {% assign used = '' %}
- <span class="size"><b>{{ product.options[0] }} :</b></span>
- <div class="size-variant-style">
- {% for variant in product.variants %}
- {% unless used contains variant.option1 %}
- <input type="radio" id="{{variant.id}}" class="radio-btnnn" name="size" onchange="letsDoThis()" value="{{ variant.option1 }}"/><label for="{{variant.id}}"><span class="size-variant">{{ variant.option1 }}</span></label>
- {% capture used %}{{ used }} {{ variant.option1 }}{% endcapture %}
- {% endunless %}
- {% endfor %}
- </div>
- {% endif %}
- {% endif %}
- <div id="price"></div>
- <input type="hidden"name="id" id="product-select" value="{{ product.variants.first.id }}" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement