Skip to main content

How can I import listings from Magento with UPC/Barcodes?

SKULabs reads Magento 2 barcodes from product attributes with the codes isbn, gtin or upc. How to add the attribute and import barcodes with your listings.

Magento does not have a built-in barcode field. SKULabs reads the barcode from a product attribute with one of these attribute codes:

  • isbn

  • gtin

  • upc

If a product has more than one, SKULabs uses the first one it finds in that order (isbn, then gtin, then upc) as the listing barcode, and adds the others as additional barcodes.

Add a barcode attribute in Magento

  1. In the Magento admin, go to Stores > Attributes > Product and add a new attribute.

  2. Set the Attribute Code to upc (or gtin or isbn). Use a text field, and do not use it for configurable options.

  3. Add the attribute to your attribute set, then enter the barcode on each product.

  4. In SKULabs, run a listings sync. The listings import with their barcodes.

A barcode extension that stores the value in an attribute with one of these codes works too.

Note: The value does not have to be an official UPC. Any number or text you print on your barcode labels works.

This applies to Magento 2. Magento 1 stores can no longer connect to SKULabs.

Did this answer your question?