New Shopify Certification now available: Liquid Storefronts for Theme Developers

Display EAN/barcode on product page

JeffreyvanOoste
Visitor
3 0 0

Hi everyone,

I want to display the barcode of a product on the product page.
I've already tried several things which didn't work as planned.

Changing the theme files, using apps, but nothing worked.
How can I show the barcode of my product on the product page?

I'm using the debut theme, but nothing seems to be working.

Hope to hear from you guys!

Replies 7 (7)
JHKCreate
Shopify Expert
3571 638 910

Hi There,

 

Totally doable, question first, your products have variants?

 

Did we solve your issue? Like & Mark As Solution to help the community
Should you need any direct help: contact@jhkcreate.com

Learn more about us: jhkcreate.com
JeffreyvanOoste
Visitor
3 0 0

Hi,

I don't have any variants.

RPK
Visitor
2 0 0

Did you ever find a solution for this?

JHKCreate
Shopify Expert
3571 638 910

@RPK displaying barcodes is doable on Shopify, what is your precise need here?

Did we solve your issue? Like & Mark As Solution to help the community
Should you need any direct help: contact@jhkcreate.com

Learn more about us: jhkcreate.com
RPK
Visitor
2 0 0

I was able to find a solution through custom code on the product card. 

 

{% assign current_variant = product.selected_or_first_available_variant %}
SKU: <span class="variant-sku">{{ current_variant.sku }}</span> |
EAN: <span class="variant-barcode">{{ current_variant.barcode }}</span>

JHKCreate
Shopify Expert
3571 638 910

Looks good!

Did we solve your issue? Like & Mark As Solution to help the community
Should you need any direct help: contact@jhkcreate.com

Learn more about us: jhkcreate.com
Daviidgrim
Visitor
2 0 0

Hi JHK,

 

I've been trying to reach you for some time about a project I have that is rather large in size. Please reach out to me at david@grimtacticalco.com

 

Thank you,