Commercial invoice fields

Shopify commercial invoice template with HS code and origin

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

Shopify commercial invoice Print HS/HSN code, origin, customs description, quantity, and exporter notes in a reviewable item table.

Quick answer

Shopify commercial invoice template with HS code and origin 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, HSN 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 %}

Next template fixes

Check the adjacent field problem before rewriting the whole template.

If this snippet does not match the real Shopify order data, the next issue is usually a metafield owner, a line item property, or a starter template placement problem.

Metafield Liquid generator

Add metafields to Shopify Order Printer

Best for merchants adding product specs, HS codes, country of origin, VAT notes, wholesale fields, or customer fields to printed documents.

Open this 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 this fix

Free invoice alternative

Free Shopify invoice app alternative for simple template edits

Best for price-sensitive merchants who want to avoid another monthly invoice app when a simple Order Printer template edit is enough.

Open this fix

Free first, fix when needed

Use the generator for the first safe test.

Generate item-level metafield snippets for HS code, country of origin, or customs description. If the snippet works alone but your real Shopify Order Printer template has custom loops, tables, print CSS, app fields, or compliance-sensitive wording, send the current template for a scoped fix.

Ask for a layout review when carrier, broker, B2B, or multi-variant customs fields must line up.

Commercial invoice fields

Shopify commercial invoice template with HS code and origin

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

Need more than code snippets?

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, HSN, 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 Shopify invoice or commercial invoice templates that need item-level HS/HSN code, origin, and customs data in a printable layout.

Focuses on item-level product and variant data.

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

Supports HSN code invoice Shopify searches while keeping the Liquid key matched to the actual metafield definition.

Clarifies that HS code, HSN code, country of origin, and customs description should usually live beside each item row, not only in the invoice header.

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, especially when variants differ by material, kit, size, supplier, or manufacturing country.

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, HSN 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, HSN, 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 merchant searches for HSN code but the template says HS code.

Likely cause
Some stores use HSN terminology for invoice or tax workflows while the Shopify metafield is still stored as hs_code or a custom key.
Fix
Use the label your staff expects on the invoice, but keep the Liquid key matched to the actual metafield definition, such as custom.hsn_code or custom.hs_code.

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.

A Shopify invoice needs HSN code for local invoice wording.

Likely cause
The merchant may be using HSN terminology while the source metafield is named hs_code, hsn_code, or another custom key.
Fix
Label the invoice column as HSN if that is what staff expect, but keep the Liquid key exactly matched to the Shopify metafield definition.

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 I print HSN codes on a Shopify invoice?

Yes, if the HSN value is stored in a Shopify product or variant metafield. Print it inside the item row and make sure the Liquid key matches the metafield definition.

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 size, material, kit, supplier, or manufacturing country; 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.

Should HS or HSN code print in the header or item table?

Item-level HS or HSN codes usually belong in the item table beside quantity, customs description, and origin. Header fields are better for exporter, EORI, tax ID, or declaration notes.

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 HSN or HS code to Shopify invoices

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

Add HSN or HS code to Shopify invoices

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.

Add country of origin to a Shopify invoice

Metafield Liquid generator

Add metafields to Shopify Order Printer

Best for merchants adding product specs, HS codes, country of origin, VAT notes, wholesale fields, or customer fields to printed documents.

Add metafields to Shopify Order Printer

Packing slip metafield

Add product metafields to a Shopify packing slip

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

Add product metafields to a Shopify packing slip

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.

Shopify VAT invoice template for Order Printer

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.

Show Shopify line item properties in Order Printer

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.

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.hsn_code
  • line_item.variant.metafields.custom.hsn_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, HSN, or origin values on some variants.
  • Using product-level origin when the same product has variants manufactured in different countries.
  • Printing an HSN code label while the metafield key is still named hs_code, or the reverse.
  • 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.
  • Adding only an HS or HSN code column while leaving customs description, origin, quantity, or destination context hard to review.

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.