dropdown for product variant picker

main
alexanderroese 2024-07-14 00:03:40 +02:00
parent d1dfe74d84
commit fcdc58883d
1 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@
<div style="display: flex; align-items: center">
{% for product_variant in product.variants %}
{% if option.selected_value == product_variant.title %}
<img src="{{ product_variant.featured_image.src | image_url }}" height="40" width="40" style="border-radius: 4px">
<img id="shx-custom-variant-picker-selected-image" src="{{ product_variant.featured_image.src | image_url }}" height="40" width="40" style="border-radius: 4px">
{% endif %}
{% endfor %}
@ -181,7 +181,7 @@
dropdownContent.style.display = 'none';
console.log("curr", event.currentTarget)
console.log("curr", event.currentTarget.querySelector("img").src)
});
});