Skip to content

Commit 5bf1dbe

Browse files
authored
Update from Shopify for theme shopify-tailwind-starter-base/feature/TICKET-123
Committed from shop: Tailwind Starter Plus Admin Fields
1 parent a34944a commit 5bf1dbe

1 file changed

Lines changed: 24 additions & 11 deletions

File tree

snippets/product-variant-options.liquid

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,7 @@
7171
{% if option.selected_value == value %}
7272
{% assign checked = true %}
7373
{% endif %}
74-
{%
75-
render 'swatch-input',
76-
id: input_id,
77-
name: option.name,
78-
value: value | escape,
79-
product_form_id: product_form_id,
80-
checked: checked,
81-
disabled: option_disabled,
82-
shape: block.settings.swatch_shape,
83-
help_text: label_unavailable
84-
%}
74+
{% render 'swatch-input', id: input_id, name: option.name, value: value, product_form_id: product_form_id, checked: checked, disabled: option_disabled, shape: block.settings.swatch_shape, help_text: label_unavailable %}
8575
{%- elsif picker_type == 'button' -%}
8676
<input
8777
type="radio"
@@ -118,3 +108,26 @@
118108
</option>
119109
{%- endif -%}
120110
{%- endfor -%}
111+
{% comment %}
112+
113+
This file has been rewritten to preserve the original behavior.
114+
115+
---
116+
Changes:
117+
- from: |-
118+
{%
119+
render 'swatch-input',
120+
id: input_id,
121+
name: option.name,
122+
value: value | escape,
123+
product_form_id: product_form_id,
124+
checked: checked,
125+
disabled: option_disabled,
126+
shape: block.settings.swatch_shape,
127+
help_text: label_unavailable
128+
%}
129+
to: "{% render 'swatch-input', id: input_id, name: option.name, value: value, product_form_id:
130+
product_form_id, checked: checked, disabled: option_disabled, shape: block.settings.swatch_shape,
131+
help_text: label_unavailable %}"
132+
position: 2496..2715
133+
{% endcomment %}

0 commit comments

Comments
 (0)