Skip to content

Commit

Permalink
Remove setting for variant styling (Shopify#2025)
Browse files Browse the repository at this point in the history
* Remove setting for variant styling

* wrong edit fix
  • Loading branch information
ludoboludo committed Oct 13, 2022
1 parent 8ce3734 commit 4616713
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 23 deletions.
6 changes: 0 additions & 6 deletions locales/en.default.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -787,9 +787,6 @@
"options__2": {
"label": "Pills"
}
},
"show_soldout": {
"label": "Show sold out and unavailable variants indicator"
}
}
},
Expand Down Expand Up @@ -1662,9 +1659,6 @@
"options__2": {
"label": "Pills"
}
},
"show_soldout": {
"label": "Show sold out and unavailable variants indicator"
}
}
},
Expand Down
6 changes: 0 additions & 6 deletions sections/featured-product.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -807,12 +807,6 @@
],
"default": "button",
"label": "t:sections.featured-product.blocks.variant_picker.settings.picker_type.label"
},
{
"type": "checkbox",
"id": "show_soldout_variants",
"default": false,
"label": "t:sections.featured-product.blocks.variant_picker.settings.show_soldout.label"
}
]
},
Expand Down
6 changes: 0 additions & 6 deletions sections/main-product.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -842,12 +842,6 @@
],
"default": "button",
"label": "t:sections.main-product.blocks.variant_picker.settings.picker_type.label"
},
{
"type": "checkbox",
"id": "show_soldout_variants",
"default": false,
"label": "t:sections.main-product.blocks.variant_picker.settings.show_soldout.label"
}
]
},
Expand Down
6 changes: 1 addition & 5 deletions snippets/product-variant-options.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,11 @@
assign variants_option3_arr = product.variants | map: 'option3'

assign product_form_id = 'product-form-' | append: section.id

-%}

{%- for value in option.values -%}
{%- liquid
assign option_disabled = false
if block.settings.show_soldout_variants
assign option_disabled = true
endif
assign option_disabled = true

for option1_name in variants_option1_arr
case option.position
Expand Down

0 comments on commit 4616713

Please sign in to comment.