fix productvariant not correctly loaded after page reload
parent
f88c3bdd66
commit
c243020584
|
@ -201,10 +201,10 @@
|
||||||
window.addEventListener('load', function() {
|
window.addEventListener('load', function() {
|
||||||
const selectedValue = selectElement.value;
|
const selectedValue = selectElement.value;
|
||||||
|
|
||||||
console.log("sel", selectedValue)
|
console.log("sel", selectedVa)
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% else %}
|
||||||
{% comment %}
|
{% comment %}
|
||||||
Theme default code
|
Theme default code
|
||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
@ -264,9 +264,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
<script type="application/json">
|
<script type="application/json">
|
||||||
{{ product.variants | json }}
|
{{ product.variants | json }}
|
||||||
|
|
Loading…
Reference in New Issue