need to show selected variant data. My code showing default variant data,

Highlighted
New Member
1 0 0

When I click on product and select colour other than default colour then below lines showing default variant data,

{% assign current_variant = product.selected_or_first_available_variant %}
{% assign selected_colour_val = current_variant.option1 %}

However when I refresh the page then I get updated and correct data.

Need to show selected variant option1 and SKU. 


0 Likes