Commercial invoice fields

Shopify commercial invoice template for Order Printer

Generate starter Liquid blocks for HS code, country of origin, customs description, and EORI notes in Shopify Order Printer templates.

Quick answer

Shopify commercial invoice template for Order Printer for Shopify Order Printer

Generate item-level metafield snippets for HS code, country of origin, or customs description. Start in a duplicate Shopify Order Printer template, paste the Liquid in the right placement area, and preview with real orders before saving.

  1. Store HS code, country of origin, or customs description as product or variant metafields.
  2. Use variant metafields when customs values differ by size, material, color, kit, or manufacturing country.
  3. Keep EORI, exporter registration, tax ID, and merchant declaration notes near the commercial invoice header or footer.

Copy-ready example

Starter Liquid pattern

Use this as a visible pattern, then use the generator below to adjust the exact field, fallback text, layout, and test notes.

{% for line_item in line_items %}
  <p>
    {{ line_item.title }} -
    HS {{ line_item.product.metafields.custom.hs_code.value | default: "Missing HS code" }},
    {{ line_item.product.metafields.custom.country_of_origin.value | default: "Missing origin" }}
  </p>
{% endfor %}

Commercial invoice fields

Shopify commercial invoice template for Order Printer

Generate item-level metafield snippets for HS code, country of origin, or customs description.

Standard order with one clear product row.
Need customs fields aligned with item rows?

Commercial invoice fields are safest when HS code, origin, description, quantity, and item title stay together in the item table.

Add customs fields to my item table
Validate a commercial invoice starter pack

Use this when you need a focused commercial invoice starter with item-level HS code, origin, and description fields.

Request commercial invoice pack

Paid feature signals

Generated Liquid

Copy-paste code

{% for line_item in line_items %}
  <div class="opk-customs-row">
    <strong>{{ line_item.title }}</strong>
    <ul>
      <li><strong>HS code:</strong> {{ line_item.product.metafields.custom.hs_code.value | default: "Missing HS code" }}</li>
      <li><strong>Country of origin:</strong> {{ line_item.product.metafields.custom.country_of_origin.value | default: "Missing origin" }}</li>
      <li><strong>Customs description:</strong> {{ line_item.product.metafields.custom.customs_description.value | default: line_item.title }}</li>
    </ul>
  </div>
{% endfor %}

Install wizard

Place the snippet before testing output.

1
Template area

Commercial invoice item table

2
Paste target

Paste inside the item loop or commercial-invoice item table so each line gets its own customs data.

3
Test order

Cross-border order with HS code, origin, and missing-field cases

Paste location

Paste inside the item loop or commercial-invoice item table so each line gets its own customs data.

Test checklist

  • Duplicate the Shopify Order Printer template before editing the live one.
  • Preview with the regular order.
  • Use an order whose product, variant, customer, or order data has the field filled in.
  • Print or save one test preview before using the template in production.

Common failure

  • Trying to print item-level customs data outside the line item loop.
  • Missing HS code or origin values on some variants.
  • Using product-level origin when the same product has variants manufactured in different countries.

Mock preview

#1048Standard order with one clear product row.
  • HS code: 6912.00
  • Country of origin: United States
  • Customs description: Blue ceramic mug

Use case

When to use this tool

Best for cross-border merchants preparing document templates that need item-level customs data in a printable layout.

Focuses on item-level product and variant data.

Covers HS code, country of origin, customs description, item quantity, and origin-sensitive variant data.

Identifies EORI, tax ID, or exporter notes as document-level fields that usually belong near the header or seller details.

Explains when product metafields are enough and when variant metafields are safer for customs values.

Uses cautious customs language and clear testing steps.

Connects naturally to metafield and packing slip workflows.

Free tool fit

Use the snippet when the edit is narrow.

Generate item-level metafield snippets for HS code, country of origin, or customs description.

  • You know which Shopify Order Printer template you want to edit.
  • You can test in a duplicate template before touching the live one.
  • The field or layout change maps to the Liquid objects listed on this page.

Manual fix fit

Request help when placement is risky.

Request a custom commercial invoice layout with merchant-reviewed customs fields.

  • Your current template already has custom loops, tables, CSS, or app-specific fields.
  • The snippet works in isolation but prints blank, repeats, or breaks layout in your real template.
  • The document is customer-facing, B2B, VAT, customs, or warehouse-critical and needs careful test notes.

Install steps

Copy into Shopify Order Printer carefully.

The preview uses sample data. Always test the template with real orders before using it for fulfillment, accounting, customs, or customer-facing documents.

  1. Step Store HS code, country of origin, or customs description as product or variant metafields.
  2. Step Use variant metafields when customs values differ by size, material, color, kit, or manufacturing country.
  3. Step Keep EORI, exporter registration, tax ID, and merchant declaration notes near the commercial invoice header or footer.
  4. Step Generate one field block at a time and place it inside the item loop.
  5. Step Preview orders with multiple countries, variants, and missing customs fields.
  6. Step Check that the printed item title, customs description, quantity, HS code, origin, and destination country all match the shipment.
  7. Step Verify the document with your carrier, broker, or customs workflow before shipping.

Problem diagnosis

Match the symptom before changing Liquid.

Use these checks to decide whether the issue is field data, snippet placement, print settings, or a template merge problem.

HS code or origin prints once instead of per product.

Likely cause
The customs block was placed in the document header or footer rather than inside the commercial invoice item table.
Fix
Paste item-level customs fields inside the line item loop, beside title, quantity, customs description, HS code, and origin.

Some invoice rows show missing customs values.

Likely cause
Not every product or variant in the test order has HS code, origin, or customs description metafields filled in.
Fix
Fill the source metafields for each product or variant, then preview orders with mixed and missing data before shipping.

Every variant prints the same origin or HS code.

Likely cause
The template reads product metafields even though customs data differs by variant, material, supplier, kit, or manufacturing country.
Fix
Move variable customs values to variant metafields and use line_item.variant.metafields.custom.field_key.value.

The commercial invoice is hard for staff to review.

Likely cause
Customs fields are separated from item title, quantity, destination country, or carrier-facing description.
Fix
Keep customs description, quantity, HS code, origin, and destination context together in the item table, then verify with the carrier workflow.

FAQ

Common Shopify Order Printer issues

Can I print HS codes from product metafields?

Yes. Generate a product metafield snippet and place it inside the line item loop.

Can this replace carrier customs forms?

No. It can help create a printable document template, but carrier and customs requirements still apply.

Should customs fields be product or variant metafields?

Use variant metafields if the value changes by variant; otherwise product metafields are usually simpler.

Where should an EORI number print?

EORI or exporter registration numbers usually belong near the seller, exporter, or commercial invoice header section, not repeated inside every item row.

What if my customs description is different from the product title?

Store a separate customs description metafield and print that value in the item table. Product titles are often too branded or too long for customs paperwork.

Can I split HS code into its own page later?

Yes. HS code and country of origin are strong enough long-tail topics to become separate pages if Search Console shows impressions.

Related exact fixes

Follow the next likely Order Printer problem.

These links connect adjacent search intents, such as blank metafields, item-level customs fields, B2B invoice data, and one-off template fixes.

HS code Order Printer

Add HS codes to Shopify Order Printer

Best for cross-border merchants who need an HS code column on a commercial invoice, customs packing slip, or export document built in Shopify Order Printer.

Open related fix

Country of origin invoice

Add country of origin to a Shopify invoice

Best for merchants whose commercial invoice or customs document needs origin printed per line item, especially when variants can have different origins.

Open related fix

Packing slip metafield

Add a metafield to a Shopify packing slip

Best for merchants adding HS codes, country of origin, pick notes, wholesale fields, or product specs to warehouse documents.

Open related fix

VAT invoice fields

Shopify VAT invoice template for Order Printer

Best for merchants who need VAT-related fields visible on printed invoices while keeping the final compliance review in-house.

Open related fix

Line item properties

Show Shopify line item properties in Order Printer

Best for merchants whose product options, personalization notes, bundle details, or gift messages are stored as line item properties instead of metafields.

Open related fix

Metafield Liquid generator

fix blank Shopify Order Printer metafields

Choose order, customer, product, or variant paths before pasting Liquid.

Open related fix

PO number invoice

add a PO number to Shopify invoices

Handle B2B purchase order data without repeating it inside item rows.

Open related fix

Alternative comparison

Order Printer Pro alternative for small fixes

Compare one-off Liquid edits with full invoice automation.

Open related fix

Common Order Printer fixes

Keep editing the same Shopify template.

These are the highest-signal internal paths for merchants who need template code, packing slip layout, barcodes, metafields, or 4x6 print fixes.

Template code generator

free Shopify Order Printer template code generator

Start with a printable template before adding fields.

Open tool

Packing slip template code

Shopify packing slip template code

Build the base pick-pack document for warehouse use.

Open tool

Barcode snippet generator

add a barcode to a Shopify packing slip

Print order, SKU, variant, tracking, or QR codes.

Open tool

Metafield Liquid generator

Shopify Order Printer metafields

Print product, variant, order, or customer metafields.

Open tool

4x6 packing slip starter

Shopify 4x6 packing slip template

Test thermal printer layout, margins, and item overflow.

Open tool

Liquid objects

Fields this page usually touches

  • line_item.product.metafields.custom.hs_code
  • line_item.variant.metafields.custom.hs_code
  • line_item.product.metafields.custom.country_of_origin
  • line_item.variant.metafields.custom.country_of_origin
  • line_item.product.metafields.custom.customs_description
  • line_item.variant.metafields.custom.customs_description
  • order.metafields.custom.eori_number
  • customer.metafields.custom.tax_id
  • line_item.quantity
  • line_item.variant.metafields
  • shipping_address.country

Common errors

Watch these before saving

  • Trying to print item-level customs data outside the line item loop.
  • Missing HS code or origin values on some variants.
  • Using product-level origin when the same product has variants manufactured in different countries.
  • Putting EORI or exporter numbers inside every item row instead of the document header.
  • Leaving customs description blank and relying on a long customer-facing product title.
  • Assuming the packing slip is enough for every customs process.

Limits

What this does not replace

  • This is document template help, not customs brokerage advice.
  • Carrier and destination-country requirements can vary.
  • Commercial invoice layouts often need manual review before they are usable.
  • The generator does not validate HS classifications, origin rules, tariff treatment, or carrier-specific customs requirements.
  • Multi-package shipments, kits, and regulated products may require extra document logic.