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 %}
Product Barcode: {{ current_variant.barcode }}
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.