Skip to content
Articles

Link To — connect label elements to your data

Bind label elements to live store data like product name, price, barcode, metafields, and order fields. Reference of common Link To options for product and address labels in the new and legacy editors.

Verified
On this page

What it does

“Link To” connects an element on your label to real data from your store. For example, you can link a text box to the product name, so each label shows the correct name for that product. Without “Link To”, the element shows only static text.

How to use it

  1. In the template editor, add an element (Text, Barcode, QR Code, or Image).
  2. Select the element on the canvas.
  3. In the properties panel, find the Link To dropdown.
  4. Choose a data field. The element will now show live data when you print.

Available data fields

The data fields you can use depend on two things:

  • Label type — Product label or Address label
  • Element type — Text, Barcode, QR Code, or Image

The tables pair readable field names with the Link To labels shown in both editors. Uppercase labels such as PRODUCT_NAME and METAFIELD_PRODUCT do not identify the legacy editor. Available fields also vary by store platform. The metafield control below is different between versions.

Product label — Text fields

FieldLink To label (both editors)What it shows
Product NamePRODUCT_NAMEThe product title
Product DescriptionPRODUCT_DESCRIPTIONThe product description (use Start With and End At text markers to crop it)
Product WeightPRODUCT_WEIGHTThe product weight
Product TagsPRODUCT_TAGSTags on the product (you can filter which tags to show)
VariantVARIANTThe variant option value, like “Red / Large” (you can hide selected options by option name)
Custom TextCUSTOM_TEXTText you type yourself — it stays the same on every label
PricePRICEThe product price (you can set currency format and decimal places)
Compared At PriceCOMPARED_AT_PRICEThe original price before discount (you can choose what to show if there is no compared price)
Market Price (presentment price)MARKET PRICEThe price in a specific market currency (you select which market)
Market Compare-at PriceMARKET COMPARE-AT PRICEThe compared price in a specific market currency
Unit PriceUNIT_PRICE (legacy: Unit price (per kg, L, etc.))The price per unit
SKUSKUThe product SKU code
Barcode TextBARCODE_TEXTThe product barcode number as text
VendorVENDORThe product vendor name
Product TypePRODUCT_TYPEThe product type
Product MetafieldMETAFIELD_PRODUCTA custom metafield on the product (select a definition in the new editor or enter its key in the legacy editor)
Variant MetafieldMETAFIELD_VARIANTA custom metafield on the variant (select a definition in the new editor or enter its key in the legacy editor)
Label QuantityLABEL_QUANTITYThe number of labels being printed for this item
Current DateCURRENT_DATEToday’s date (you can add a day offset, for example +7 for one week later)
Current Date UnixCURRENT_DATE_UNIXToday’s date as a Unix timestamp (with optional day offset)
Product IDPRODUCT_IDThe product ID
Variant IDVARIANT_IDThe variant ID
Inventory QuantityINVENTORY_QUANTITYThe current stock level

Barcode Text (BARCODE_TEXT) displays the stored barcode value in a Text element. To print a scannable barcode, use a Barcode element linked to Barcode, as listed below.

Product label — Barcode fields

FieldWhat it shows
Barcode (BARCODE)The product barcode
SKU (SKU)The SKU as a barcode
Custom Barcode (CUSTOM_BARCODE)A barcode with text you type yourself
Product Metafield (METAFIELD_PRODUCT)A metafield value as a barcode
Variant Metafield (METAFIELD_VARIANT)A variant metafield value as a barcode
Product ID (PRODUCT_ID)The product ID as a barcode
Variant ID (VARIANT_ID)The variant ID as a barcode

Supported barcode formats: CODE128, EAN13, UPC-A, UPC-E, CODE39, ISBN, EAN8, GS1-128.

Product label — QR Code fields

FieldWhat it shows
Barcode (BARCODE)The product barcode as a QR code
Custom QR Code (CUSTOM_QRCODE)A QR code with text or URL you type yourself
SKU (SKU)The SKU as a QR code
Online Store Product URL (ONLINE_STORE_PRODUCT_URL)A link to the product page on your store (you can add a URL suffix)
Product Metafield (METAFIELD_PRODUCT)A metafield value as a QR code
Variant Metafield (METAFIELD_VARIANT)A variant metafield value as a QR code
Scan to Cart (SCAN_PRODUCT_TO_CART) Shopify A special link that adds the product to the cart when scanned
Product Admin URL (PRODUCT_ADMIN_URL)A link to the product in your store admin
Product ID (PRODUCT_ID)The product ID as a QR code
Variant ID (VARIANT_ID)The variant ID as a QR code

Product label — Image fields

FieldWhat it shows
Custom Image (IMAGE)An image you upload yourself
Product Image (PRODUCT_IMAGE)The main product image from your store
Variant Image (PRODUCT_VARIANT_IMAGE)The image for the specific variant
Product Metafield (METAFIELD_PRODUCT)A metafield value as an image (the metafield must contain an image URL)
Variant Metafield (METAFIELD_VARIANT)A variant metafield value as an image

Address label — Text fields

FieldLink To label (both editors)What it shows
Order NumberORDER_NUMBERThe order number
Full AddressFULL_ADDRESSThe complete shipping address
Address Line 1ADDRESS_LINE1The first line of the address
Address Line 2ADDRESS_LINE2The second line (apartment, suite, etc.)
CountryCOUNTRYThe country
Zip CodeZIP_CODEThe postal or zip code
CityCITYThe city
ProvincePROVINCEThe state or province
City + ProvinceCITY, PROVINCECity and province together
CompanyCOMPANYThe company name
Shipping Full NameSHIPPING_FULL_NAMEThe full name on the shipping address
Shipping First NameSHIPPING_FIRST_NAMEThe first name
Shipping Last NameSHIPPING_LAST_NAMEThe last name
Shipping PhoneSHIPPING_PHONEThe phone number on the shipping address
Customer PhoneCUSTOMER_PHONEThe customer’s phone number
Customer First NameCUSTOMER_FIRST_NAMEThe customer’s first name
Customer Last NameCUSTOMER_LAST_NAMEThe customer’s last name
Custom TextCUSTOM_TEXTText you type yourself

Address label — Barcode / QR Code / Image

Address labels have fewer options:

  • Barcode: Custom Barcode, Order Number
  • QR Code: Custom QR Code
  • Image: Custom Image

Using metafields

Metafields let you show custom data that you added to your products or variants in your store.

This works for Text, Barcode, QR Code, and Image elements where metafield sources are available. The chosen product or variant must have a value. For images, the metafield must contain a direct image URL. See Using metafields on labels for a complete example.

Text formatting options

When you link a text element, you can also set:

  • Case — Lowercase, UPPERCASE, Capitalized, or Sentence case
  • Prefix — Text to add before the data (for example ”$” before price)
  • Suffix — Text to add after the data (for example ” kg” after weight)

Good to know

  • Changing Link To changes the data source for the selected element. For example, choose PRODUCT_NAME instead of CUSTOM_TEXT to print each product’s title.
  • Price fields let you choose the currency format: Regular (1,234.56), None Seperator (1234.56), or Other (1.234,56). You can also set how many decimal places to show (0 to 5).
  • The Variant field shows all option values by default. You can hide specific options by option name — type Color (the option), not Red (the value). See Display product variants with filter options.
  • Current Date supports a day offset. Set it to 7 to show a date one week from today. This is useful for expiration dates.
  • Scan to Cart QR codes create a special URL that adds the product to the customer’s cart when scanned. Shopify

Questions about this article? Email our team.

Send feedback