Need Help making Variation Grey out with Multiple Options 

vix1
Tourist
15 0 1

Need Help making Variation Grey out with Multiple Options if variant stock is zero. I just need the snippet since I cannot provide access to the website. if you need the full source code just let me know

I just need to make this part work

 

               <fieldset class="single-option-radio {{ option.name }}"
                      name="{{ option.name }}"
                      id="ProductSelect-option-{{ forloop.index0 }}">
                      {% assign option_index = forloop.index %}
                      {% for value in option.values %}
                        {% assign variant_label_state = true %}
                        {% if product.options.size == 1 %}
                          {% unless product.variants[forloop.index0].available  %}
                            {% assign variant_label_state = false %}
                          {% endunless %}
                        {% endif %}
                        <input type="radio"
                          {% if option.selected_value == value %} checked="checked"{% endif %}
                          value="{{ value | escape }}"
                          data-index="option{{ option_index }}"
                          name="{{ option.name }}"
                          class="single-option-selector__radio{% unless variant_label_state %} disabled{% endunless %}"
                          id="ProductSelect-option-{{ option.name }}-{{ value | escape | remove: " " }}" >
                        <label  for="ProductSelect-option-{{ option.name }}-{{ value | escape | remove: " " }}"{% unless variant_label_state %} class="disabled"
                               {% endunless %} 
                               data-variant="{{ value | escape }}">{{ value | escape }}</label>
                      {% endfor %}
                      
                      
                      
                    </fieldset>

please post your skype ID or email so I can contact you quicky

0 Likes
bluetech
Shopify Expert
394 0 3

Hi,

Let connect at Skype sudhircj1

Thanks!

Sid

info@bluetech.co.in

Bluetech | https://www.bluetechitservices.com | info@bluetech.co.in
0 Likes
DeepVyas
Shopify Partner
552 5 7

Hi Vix,

Add me on skype - deepvyas71 
 

Thanks 
Deep

Shopify Expert | S: deepvyas71 | E: deepvyas71@gmail.com
0 Likes
ArnoldBr27
Tourist
40 0 1

Hi,

I can help.

You can reach me on Skype: cisin.arnold or Email: arnold.cis20@gmail.com so that we can discuss this further.

Arnold
 

0 Likes
knowyweb
Tourist
36 0 2

Hello Vix,

I can help you on it.

Kindly share with me more information on my id : knowyweb@gmail.com or skype: shah.darshanv

Thanks,

Darshan

Knowyweb company specializing in web dev/design, digital marketing, and online strategy. Skype: knowyweb & Email : darshan@knowyweb.com
0 Likes
Antropy
Shopify Partner
213 0 5

Hi Vix,

We should be able to help with this, would you be able to drop us an email to get an estimate?
info@antropy.co.uk

Kind regards,
Paul Feakins
www.antropy.co.uk

0 Likes