Skip to content

Commit 0798cd8

Browse files
authored
Update from Shopify for theme dawn/combined-listings-reference-theme
Committed from shop: getmyducksinarow
1 parent 9ecdc5c commit 0798cd8

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
@@ -58,18 +58,7 @@
5858
{%- endcapture %}
5959

6060
{%- if picker_type == 'swatch' -%}
61-
{%
62-
render 'swatch-input',
63-
id: input_id,
64-
name: input_name,
65-
value: value | escape,
66-
product_form_id: product_form_id,
67-
checked: value.selected,
68-
disabled: option_disabled,
69-
shape: block.settings.swatch_shape,
70-
help_text: label_unavailable,
71-
additional_props: input_dataset
72-
%}
61+
{% render 'swatch-input', id: input_id, name: input_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 %}
7362
{%- elsif picker_type == 'button' -%}
7463
<input
7564
type="radio"
@@ -113,3 +102,27 @@
113102
{{ value.variant | json }}
114103
</script>
115104
{%- endfor -%}
105+
{% comment %}
106+
107+
This file has been rewritten to preserve the original behavior.
108+
109+
---
110+
Changes:
111+
- from: |-
112+
{%
113+
render 'swatch-input',
114+
id: input_id,
115+
name: input_name,
116+
value: value | escape,
117+
product_form_id: product_form_id,
118+
checked: value.selected,
119+
disabled: option_disabled,
120+
shape: block.settings.swatch_shape,
121+
help_text: label_unavailable,
122+
additional_props: input_dataset
123+
%}
124+
to: "{% render 'swatch-input', id: input_id, name: input_name, value: value, product_form_id:
125+
product_form_id, checked: value.selected, disabled: option_disabled, shape: block.settings.swatch_shape,
126+
help_text: label_unavailable, additional_props: input_dataset %}"
127+
position: 1601..1859
128+
{% endcomment %}

0 commit comments

Comments
 (0)