dropdown for product variant picker
parent
92b5e77472
commit
e08769f425
|
@ -41,15 +41,22 @@
|
|||
%}
|
||||
|
||||
<script>
|
||||
console.log("1 product variant", "{{ picker_type }}", {{ product | json }}, {{ shx_current_page }})
|
||||
console.log("2 product variant", "{{ picker_type }}", {{ product | json }}, {{ shx_current_page }})
|
||||
</script>
|
||||
|
||||
{% if shx_current_page contains "texte" %}
|
||||
<h3>Texte Dropdown</h3>
|
||||
|
||||
{% for product_variant in product.variants %}
|
||||
<span>{{ product_variant.title }}</span>
|
||||
{% endfor %}
|
||||
<select
|
||||
id="Option-{{ section.id }}-{{ forloop.index0 }}"
|
||||
class="select__select"
|
||||
name="options[{{ option.name | escape }}]"
|
||||
form="{{ product_form_id }}"
|
||||
>
|
||||
{% for product_variant in product.variants %}
|
||||
<option value="{{ product_variant.title }}">{{ product_variant.title }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
{% endif %}
|
||||
|
||||
{%- if picker_type == 'swatch' -%}
|
||||
|
|
Loading…
Reference in New Issue