I wanted to move the location of my sku lower in the same div. However, once I moved it, it simply stopped updating when selecting a new variant. When I place it back in its original position, it starts working again. Does anyone know as to why?
For example, I’m trying to move it below “
”.
Here is the code below:
Liquid
{%- if settings.sku_enable -%}
{%- if current_variant.sku -%} {{ current_variant.sku }} {%- endif -%}
{%- endif -%}JS
_updateSKU: function(variant) {
if (variant.sku === this.currentVariant.sku) {
return;
}
this.$container.trigger({
type: ‘variantSKUChange’,
variant: variant
});
},
