diff --git a/assets/global.js b/assets/global.js index 9fc6e9b..54fe039 100644 --- a/assets/global.js +++ b/assets/global.js @@ -979,7 +979,10 @@ class VariantSelects extends HTMLElement { document.querySelectorAll('shx-drehteller').forEach((drehteller) => { drehteller.initCurrentVariant(this.currentVariant.featured_image.alt); - console.log("drehteller INIT", drehteller); + }); + + document.querySelectorAll('shx-variant-description').forEach((variantDescription) => { + variantDescription.initVariantDescription(this.currentVariant.featured_image.alt); }); } @@ -1102,6 +1105,10 @@ class VariantSelects extends HTMLElement { drehteller.reloadCurrentVariant(this.currentVariant.featured_image.alt); }); + document.querySelectorAll('shx-variant-description').forEach((variantDescription) => { + variantDescription.updateVariantDescription(this.currentVariant.featured_image.alt); + }); + } else { // show all thumbnails document.querySelectorAll('[thumbnail-alt]').forEach((thumbnail) => { diff --git a/snippets/shx-product-desc.liquid b/snippets/shx-product-desc.liquid index 33cdf17..ee50df1 100644 --- a/snippets/shx-product-desc.liquid +++ b/snippets/shx-product-desc.liquid @@ -5,7 +5,7 @@