dropdown for product variant picker

main
alexanderroese 2024-07-13 16:12:43 +02:00
parent d73d79924a
commit e1def29ca8
1 changed files with 6 additions and 2 deletions

View File

@ -41,7 +41,7 @@
%}
<script>
console.log("3 product variant", "{{ picker_type }}", {{ product | json }}, {{ shx_current_page }})
console.log("1 product variant", "{{ picker_type }}", {{ product | json }}, {{ shx_current_page }})
</script>
{% if shx_current_page contains "texte" %}
@ -55,7 +55,11 @@
form="{{ product_form_id }}"
>
{% for product_variant in product.variants %}
<option value="{{ product_variant.title }}">{{ product_variant.title }}</option>
<option value="{{ product_variant.title }}">
<div style="display: flex; flex-direction: column">
<span>{{ product_variant.title }}</span>
</div>
</option>
{% endfor %}
</select>
</div>