dropdown for product variant picker

main
alexanderroese 2024-07-13 16:49:42 +02:00
parent eb1bcb7450
commit 960f3beee9
1 changed files with 2 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>
<style>
@ -120,7 +120,7 @@
<div class="shx-custom-dropdown-content" id="shx-custom-dropdown-content">
{% for product_variant in product.variants %}
<div data-value="{{ product_variant.title }}">
<img src="{{ product_variant.featured_image.src }}" height="100" width="100">
<img src="{{ product_variant.featured_image.src | asset_url }}" height="100" width="100">
<span>{{ product_variant.title }}</span>
</div>
{% endfor %}