select with images

main
alexanderroese 2024-07-17 19:44:29 +02:00
parent 68ada2d4a6
commit a2b34cd81e
2 changed files with 1 additions and 3 deletions

View File

@ -3699,8 +3699,6 @@ img {
background-color: #e9e9e9;
}
/*
.shx-custom-enhanced-dropdown-hide-dummy-select {
display: none;
}
*/

View File

@ -134,7 +134,7 @@
</div>
</div>
</button>
<div class="shx-custom-enhanced-dropdown-content" id="shx-custom-variant-picker-dropdown-content">
<div class="shx-custom-enhanced-dropdown-content shx-custom-variant-picker-dropdown-content" id="shx-custom-variant-picker-dropdown-content">
{% for product_variant in product.variants %}
<div data-value="{{ product_variant.title }}" {% if option.selected_value == product_variant.title %}class="shx-custom-variant-picker-selected-variant"{% endif %}>
<img src="{{ product_variant.featured_image.src | image_url }}" height="100" width="100" style="border-radius: 4px">