Shopify themes, liquid, logos, and UX
Hi All. So I have managed to get my Product Barcode to show on the Product page using the code:
{% assign current_variant = product.selected_or_first_available_variant %}
<b>Product Barcode: </b><span class="variant-barcode">{{ current_variant.barcode }}</span>
However on products where there are multiple variants, the barcode doesnt seem to change with the selected variant.
Can anyone help me with what to do in order to get the barcode to update to reflect the selected variant please?
Thanks in Advance.
Does anyone have any input please?
Hey- I know this is years old, but did you ever get this sorted? I'm looking to get this working too.
Thanks!
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