Shopify themes, liquid, logos, and UX
Hey,
Wondering if anyone knows if its possible to change a variant.id on change of the variant like the variant.sku?
like this effectively but for variant.id (and ideally variant.compare-to-price and variant.price)
{% assign current_variant = product.selected_or_first_available_variant %}
<span class="variant-sku">{{ current_variant.sku }}
</span>
could write the JS for this, but figured it probably exists somewhere as a class so wanted to save myself the headache.
Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025