dropdown for product variant picker

main
alexanderroese 2024-07-13 16:38:19 +02:00
parent edb1275e09
commit 2ef57ae845
1 changed files with 6 additions and 1 deletions

View File

@ -84,6 +84,11 @@
.shx-custom-dropbtn:focus {
outline: none;
}
.shx-custom-dropdown-variant {
display: flex;
justify-content: center;
}
</style>
{% if shx_current_page contains "texte" %}
@ -112,7 +117,7 @@
<button class="shx-custom-dropbtn" id="shx-custom-selected">Select Product Variant</button>
<div class="shx-custom-dropdown-content" id="shx-custom-dropdown-content">
{% for product_variant in product.variants %}
<div data-value="{{ product_variant.title }}">
<div class="shx-custom-dropdown-variant" data-value="{{ product_variant.title }}">
<img src="https://shinnex.de/cdn/shop/files/97548.webp?v=1720209711&width=600" height="200" width="200">
<span>{{ product_variant.title }}</span>
</div>