Get Invoice with Country of Origin and HS Code

Topic summary

Goal: include HS code (HSN) and Country of Origin (COO) on Shopify invoices/packing slips for exports using Order Printer.

Current capability and code:

  • HS code can be printed via a variant metafield: {{ line_item.variant.metafields.harmonized_system_code.value }}.
  • Multiple users confirmed this works and shared template snippets; one posted a full invoice template including an HSN column.

Limitations and issues:

  • COO cannot be directly accessed in Order Printer; no documented native Liquid variable found.
  • One user noted Shopify only supports 6‑digit HS codes, not 8/10.
  • Some experienced layout/alignment issues after adding the HSN column (screenshot referenced).
  • Shopify support reportedly redirected users to hire developers; frustration expressed.

Workarounds shared:

  • Use an app (Invoice Wizard by Wizard Labs) that exposes both HSN and COO fields.
  • Developer workaround: add a tag to each product with the country name and print that tag; bulk tagging required a separate tag-creator app.
  • One participant offered private assistance via email; no public COO solution provided.

Status:

  • HS code printing: workable via metafield.
  • COO: no native solution shown; thread remains unresolved/ongoing, with app or tagging workarounds.
Summarized with AI on January 5. AI used: gpt-5.

Could you help us with this? We want to show country of origin & hs code. We also want variables of this. You can call us on 9716072875. I am Kawal.