fix productvariant not correctly loaded after page reload

main
alexanderroese 2024-07-14 18:17:45 +02:00
parent f88c3bdd66
commit c243020584
1 changed files with 3 additions and 5 deletions

View File

@ -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 }}