From c2430205848b866b8a617190ab2aa123a66093d5 Mon Sep 17 00:00:00 2001 From: alexanderroese Date: Sun, 14 Jul 2024 18:17:45 +0200 Subject: [PATCH] fix productvariant not correctly loaded after page reload --- snippets/product-variant-picker.liquid | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/snippets/product-variant-picker.liquid b/snippets/product-variant-picker.liquid index 190dea6..c9b2756 100644 --- a/snippets/product-variant-picker.liquid +++ b/snippets/product-variant-picker.liquid @@ -201,10 +201,10 @@ window.addEventListener('load', function() { const selectedValue = selectElement.value; - console.log("sel", selectedValue) + console.log("sel", selectedVa) }); - {% endif %} + {% else %} {% comment %} Theme default code {% endcomment %} @@ -264,9 +264,7 @@ {% endif %} - - - + {% endif %} {%- endfor -%}