Shopify Supply theme deep linking variant stop working

AvidBrio
Shopify Expert
231 12 18

here is code 

Supply theme /sections/product-template.liquid

 <select name="id" id="productSelect-{{ section.id }}" class="product-variants__ product-variants-{{ section.id }}">
            <option  data-var-price="{{ product.price_min | money_with_currency }} " > Select </option>
            {% for variant in product.variants %}
              {% if variant.available %}
              
                <option data-sel-vat= {{ product.selected_or_first_available_variant  }} {% if variant ==  product.selected_or_first_available_variant %} selected="selected" {% endif %}   data-sku="{{ variant.sku }}"  data-var-price="{{ variant.price | money_with_currency }}" value="{{ variant.id }}">{{ variant.title }}  {%- comment -%} {{ variant.price | money_with_currency }} - {%- endcomment -%} </option>
    
              {% else %}
              <option> Select </option>
                <option disabled="disabled">
                  {{ variant.title }} - {{ 'products.product.sold_out' | t }}
                </option>
              {% endif %}
            {% endfor %}
          </select>


 

If you find our comment helpful, hit the like button and accept it as a solution.
Want us to implement custom changes in your store? Contact us
Email me directly - jim@avidbrio.com
Replies 0 (0)