dropdown for product variant picker
parent
d099a7bcb6
commit
8ff7d6ec8d
|
@ -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>
|
||||
|
@ -119,8 +119,11 @@
|
|||
<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 %}
|
||||
{% assign my_arr = product_variant.featured_image.src | split "/" %}
|
||||
{% assign f_img = my_arr[0] %}
|
||||
|
||||
<div data-value="{{ product_variant.title }}">
|
||||
<img src="{{ product_variant.featured_image.src | file_img_url }}" height="100" width="100">
|
||||
<img src="{{ f_img }}" height="100" width="100">
|
||||
<span>{{ product_variant.title }}</span>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in New Issue