Product barcode appears but then disappears

Hi all,

I have added product barcode to product page with this code:

{% if section.settings.display_product_sku %}

{% if settings.enable_multilang %}

{% else %}

{% endif %}
{{ current_variant.barcode }}

{% endif %}

https://bizzdiamond.com/collections/baget-yuzukler/products/2-24-karat-baget-altin-pirlanta-yuzuk – this is the example product page. The website is still under development.

This code works and put barcode on the selected area but when the page fully loaded barcode disappears. Is this theme related or something else?

Thanks

Hi @bardamu23 ,

I checked and the JS changed it after the variant was loaded. Simple way to turn this off, you just need to change the class ‘sku-product’, it will work fine.

Ex:

=>

Hope it helps!

1 Like