How to make GS1 QR codes for your Magento products
Without a GTIN field, your Magento catalog cannot feed a GS1 QR code, and every late reprint costs you. Add one attribute, export your products, upload the file to DLCode and get a print file for each product.
DLCode · Updated · 6 min read
Keep your GTIN in a product attribute
A GTIN is the number printed under your UPC or EAN barcode. In Magento Open Source and Adobe Commerce, you store it in a product attribute that you create.
Give the attribute the code gtin, upc, ean, barcode or isbn. DLCode looks for these codes in your export. The attribute code must be unique, in lowercase and without spaces.
- In the Admin sidebar, go to Stores > Attributes > Product.
- Click Add New Attribute.
- Enter a Default Label, such as GTIN, and set Catalog Input Type for Store Owner to Text Field.
- Under Advanced Attribute Properties, enter gtin as the Attribute Code.
- Click Save Attribute.
- Go to Stores > Attributes > Attribute Set, open your attribute set, and drag the attribute from Unassigned Attributes into a group. Save the set.
Then open each product and enter its GTIN. For a configurable product, enter a GTIN on each simple product that makes up a size or color.
A GS1 QR code needs a real GTIN with 8, 12, 13 or 14 digits. If you do not have GTINs yet, see How to get a GTIN for your products in the US.
Export your products from Magento
- In the Admin sidebar, go to System > Data Transfer > Export.
- Set Entity Type to Products.
- Keep the Export File Format as CSV.
- Scroll down and click Continue.
The export runs in the background, and the Admin shows a message when it is done. Your cron jobs must be running for the export to finish.
Magento puts the attributes you created in one column, additional_attributes. Each value is written as code=value, with a comma between them, such as color=Black,gtin=036000291452.
Upload the file to DLCode
- In DLCode, go to Import.
- Choose your Magento export file and click Import.
- DLCode reads the gtin, upc, ean, barcode or isbn value from the additional_attributes column and adds each product, up to your plan limit.
- Open a product and download its print file.
Rows with none of these values are left out. Rows for a store view, which have a value in store_view_code, are left out too, so each product comes in once. A value that is not a valid GTIN is skipped, and the import report shows its row number. DLCode checks the length and the last digit of each GTIN.
Each print file has the barcode and the QR code side by side, 4 mm apart. Files come as SVG, PDF, EPS and PNG, with no watermark. For sizes and quiet zones, see Print specs for a QR code next to your UPC or EAN.
Send each scan to its product page
The Magento file has no full product page links. After import, each code opens a hosted page on dlcode.org with the product name, and the brand if you filled it in.
To send shoppers to your store, add a link to each product in DLCode. Copy the address of the product page from your live store and paste it in. The link must start with https://.
You can change the link at any time. The printed code stays the same, and the change applies from the next scan.
A checkout scanner that reads 2D barcodes takes the GTIN from the code. A phone camera opens the link.
What Sunrise 2027 means for your Magento products
Sunrise 2027 is the GS1 US goal for US retail checkouts to read 2D barcodes, such as GS1 QR codes, by the end of 2027. Packaging you print today will still be on shelves then. Add the QR code in your next print run and you avoid paying for a second reprint.
During the transition, GS1 recommends printing both the UPC or EAN and the QR code. Keep your current barcode on the package and add the QR code next to it. See Sunrise 2027: how to add a GS1 Digital Link QR code to your packaging.
Get your Magento catalog done this week with DLCode
Upload one Magento export and leave with a print-ready GS1 QR code for every product.
- DLCode reads your GTINs straight from the additional_attributes column and checks each one before it makes a code.
- Each print file puts the barcode and the QR code 4 mm apart, as SVG, PDF, EPS and PNG, with no watermark.
- Paste the link to each product page in your store, and change it any time without a reprint.
- Paid packs add lot-level recalls and a free domain for your codes.
Start free for 10 products, with no card. When you need more, pay once: $249 for 25 products, with hosting and unlimited scans through December 31, 2030. There is no subscription.
Start free with your Magento export today, or see pricing for larger catalogs. For more, see DLCode for Magento stores.
Checklist
- Your store has a text attribute with the code gtin, upc, ean, barcode or isbn.
- The attribute is in the attribute set your products use.
- Every simple product has its own GTIN from GS1.
- You exported Products from System > Data Transfer > Export as CSV.
- You uploaded the file to DLCode and checked the import report for skipped rows.
- Each product in DLCode links to its product page on your live store.
- You printed a proof and scanned it with more than one phone.
Sources
- Product attribute reference · Adobe Experience League
- Export · Adobe Experience League
- Create and delete product attributes · Adobe Experience League
Get your QR code
Get a print-ready file with your barcode and a GS1 Digital Link QR code side by side. 10 products free, and pack features free for 30 days. No card. Then pay once from $249.