Skip to content

Commit ca8ffff

Browse files
authored
Update from Shopify for theme dawn/updates-to-option-value-picker
Committed from shop: Live Edge Wood Products
1 parent fef58fa commit ca8ffff

1 file changed

Lines changed: 25 additions & 12 deletions

File tree

‎snippets/product-variant-options.liquid‎

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,7 @@
5454
{%- endcapture %}
5555

5656
{%- if picker_type == 'swatch' -%}
57-
{%
58-
render 'swatch-input',
59-
id: input_id,
60-
name: option.name,
61-
value: value | escape,
62-
product_form_id: product_form_id,
63-
checked: value.selected,
64-
disabled: option_disabled,
65-
shape: block.settings.swatch_shape,
66-
help_text: label_unavailable,
67-
additional_props: input_dataset
68-
%}
57+
{% render 'swatch-input', id: input_id, name: option.name, value: value, product_form_id: product_form_id, checked: value.selected, disabled: option_disabled, shape: block.settings.swatch_shape, help_text: label_unavailable, additional_props: input_dataset %}
6958
{%- elsif picker_type == 'button' -%}
7059
<input
7160
type="radio"
@@ -109,3 +98,27 @@
10998
{{ value.variant | json }}
11099
</script>
111100
{%- endfor -%}
101+
{% comment %}
102+
103+
This file has been rewritten to preserve the original behavior.
104+
105+
---
106+
Changes:
107+
- from: |-
108+
{%
109+
render 'swatch-input',
110+
id: input_id,
111+
name: option.name,
112+
value: value | escape,
113+
product_form_id: product_form_id,
114+
checked: value.selected,
115+
disabled: option_disabled,
116+
shape: block.settings.swatch_shape,
117+
help_text: label_unavailable,
118+
additional_props: input_dataset
119+
%}
120+
to: "{% render 'swatch-input', id: input_id, name: option.name, value: value, product_form_id:
121+
product_form_id, checked: value.selected, disabled: option_disabled, shape: block.settings.swatch_shape,
122+
help_text: label_unavailable, additional_props: input_dataset %}"
123+
position: 1506..1765
124+
{% endcomment %}

0 commit comments

Comments
 (0)