Skip to content

Commit e2fbc42

Browse files
authored
Update from Shopify for theme shopify-tailwind-starter-base/feature/TECH-730
Committed from shop: Tailwind Starter Plus Admin Fields
1 parent 7f6684f commit e2fbc42

1 file changed

Lines changed: 27 additions & 13 deletions

File tree

snippets/product-variant-options.liquid

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,7 @@
6464
<span class="visually-hidden">{{ value | escape }}</span>
6565
{{ label_unavailable }}
6666
{%- endcapture -%}
67-
{%
68-
render 'swatch-input',
69-
id: input_id,
70-
name: input_name,
71-
value: value | escape,
72-
swatch: value.swatch,
73-
product_form_id: product_form_id,
74-
checked: value.selected,
75-
visually_disabled: option_disabled,
76-
shape: block.settings.swatch_shape,
77-
help_text: help_text,
78-
additional_props: input_dataset
79-
%}
67+
{% render 'swatch-input', id: input_id, name: input_name, value: value, swatch: value.swatch, product_form_id: product_form_id, checked: value.selected, visually_disabled: option_disabled, shape: block.settings.swatch_shape, help_text: help_text, additional_props: input_dataset %}
8068
{%- elsif picker_type == 'button' -%}
8169
<input
8270
type="radio"
@@ -123,3 +111,29 @@
123111
{{ value.variant | json }}
124112
</script>
125113
{%- endfor -%}
114+
{% comment %}
115+
116+
This file has been rewritten to preserve the original behavior.
117+
118+
---
119+
Changes:
120+
- from: |-
121+
{%
122+
render 'swatch-input',
123+
id: input_id,
124+
name: input_name,
125+
value: value | escape,
126+
swatch: value.swatch,
127+
product_form_id: product_form_id,
128+
checked: value.selected,
129+
visually_disabled: option_disabled,
130+
shape: block.settings.swatch_shape,
131+
help_text: help_text,
132+
additional_props: input_dataset
133+
%}
134+
to: "{% render 'swatch-input', id: input_id, name: input_name, value: value, swatch:
135+
value.swatch, product_form_id: product_form_id, checked: value.selected, visually_disabled:
136+
option_disabled, shape: block.settings.swatch_shape, help_text: help_text, additional_props:
137+
input_dataset %}"
138+
position: 1866..2147
139+
{% endcomment %}

0 commit comments

Comments
 (0)