dropdown for product variant picker
parent
c394319b76
commit
85a2731ed6
|
@ -89,6 +89,7 @@
|
|||
{% if shx_current_page contains "texte" %}
|
||||
<h3>Texte Dropdown</h3>
|
||||
|
||||
{% comment %}
|
||||
<div class="field custom">
|
||||
<select
|
||||
id="Option-{{ section.id }}-{{ forloop.index0 }}"
|
||||
|
@ -105,19 +106,16 @@
|
|||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
{% endcomment %}
|
||||
|
||||
<div class="shx-custom-dropdown field custom">
|
||||
<button class="shx-custom-dropbtn" id="shx-custom-selected">Select Product Variant</button>
|
||||
<div class="shx-custom-dropdown-content" id="shx-custom-dropdown-content">
|
||||
<div data-value="variant1">
|
||||
<span>Variant 1</span>
|
||||
</div>
|
||||
<div data-value="variant2">
|
||||
<span>Variant 2</span>
|
||||
</div>
|
||||
<div data-value="variant3">
|
||||
<span>Variant 3</span>
|
||||
</div>
|
||||
{% for product_variant in product.variants %}
|
||||
<div data-value="{{ product_variant.title }}">
|
||||
<span>{{ product_variant.title }}</span>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue