How can I display a product's barcode on its 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 8 (8)

JHKCreate
Shopify Expert
3571 638 924

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 2

Did you ever find a solution for this?

JHKCreate
Shopify Expert
3571 638 924

@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 2

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 924

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 1

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,

Massimo_2
Tourist
5 0 1

Hi,
can you be more specific?
I have same problem.
Thanks