When we select any size the disable size get enabled in quick shop add to cart button on product.

When we select any size the disable size get enabled in quick shop add to cart button on product.

Please check this in below given ref link:

https://chkokko.com/collections/men-polo

Men’s Regular Fit Polo T-Shirt With Pocket (open this name product)

{% assign id_form = id | append: '-' | append: product.id %} {% for option in product.options_with_values %} {% assign option_name = option.name | downcase %} {% assign option_color_swatch = settings.option_color_swatch | downcase %} {% if settings.use_color_swatch %} {% if option_color_swatch contains option_name %}
{{ option.name }}: {{ option.selected_value }} {% assign option_index0 = forloop.index0 %} {% assign option_index = forloop.index %} {% assign values = '' %} {% for variant in product.variants %} {% assign value = variant.options[option_index0] %} {% unless values contains value %} {% assign values = values | join: ';' %} {% assign values = values | append: ';' | append: value %} {% assign values = values | split: ';' %} {% assign value_2 = value | remove: " " | downcase %}
{% if variant.image != blank %}{% endif %}
{% endunless %} {% endfor %}
{% else %}
{{ option.name }}: {{ option.selected_value }} {% assign option_index0 = forloop.index0 %} {% assign option_index = forloop.index %} {% assign values = '' %}

{% for variant in product.variants %}
{% assign value = variant.options[option_index0] %}
{% unless values contains value %}
{% assign values = values | join: ‘;’ %}
{% assign values = values | append: ‘;’ | append: value %}
{% assign values = values | split: ‘;’ %}
{% assign value_2 = value | remove: " " | downcase %}

{{ value }}
{% endunless %} {% endfor %}
{% endif %} {% else %}
{{ option.name }}: {{ option.selected_value }}
{% endif %} {% endfor %}
{% comment %} {{ 'products.general.submit' | t }} {% endcomment %} ADD TO CART {{ 'products.general.cancel' | t }}
#snackbar { visibility: hidden; min-width: 250px; margin-left: -125px; background-color: #333; color: #fff; text-align: center; border-radius: 2px; padding: 16px; position: fixed; z-index: 1; left: 50%; top: 60px; font-size: 17px; } #snackbar.show { visibility: visible; -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s; animation: fadein 0.5s, fadeout 0.5s 2.5s; } @-webkit-keyframes fadein { from {top: 0; opacity: 0;} to {top: 60px; opacity: 1;} } @keyframes fadein { from {top: 0; opacity: 0;} to {top: 60px; opacity: 1;} } @-webkit-keyframes fadeout { from {top: 60px; opacity: 1;} to {top: 0; opacity: 0;} } @keyframes fadeout { from {top: 60px; opacity: 1;} to {top: 0; opacity: 0;} }
✓   Added in cart..