Get Invoice with Country of Origin and HS Code

4 0 2

We need an invoice when sending orders out of EU. The Invoice needs to show price, HS code and Country of Origin for each product.


Im currently using the Print Order app to generate the invoice. And I'm now trying to add the HS code and Country of Origin to the invoice.


After a lot of hassle, the HS code is now shown by adding this line: 

{{ line_item.variant.metafields.harmonized_system_code.value }}


I did however read that metafields are not recommended to use, as this is deprecated, but nothing else have worked.


And I still haven't found any solution as to how to show the Country of Origin.


It seems like a fairly straight task, but it has not been possible for me to find any documentation on this field or how to access it. 


I really hope someone can help me, ideally on how to access this field, or on how to generate an invoice with this (really common) info.

7 0 5

I'm having exactly the same issue. All I need is a print out for each order showing the item, the SKU, weight, value, HS code and country or origin. Astonishingly, it appears Shopify can't accomplish this really basic task.  I spent most of yesterday chatting with support and we are nowhere nearer a solution. I am completely amazed that Shopify cannot resolve this. 

I'm also looking for the same solution but I couldn't find it yet. Why does Shopify ask to fill the "Country of Origin" if they can't have an option to show it?


7 0 5

It is ridiculous that Shopify does not enable this function as standard. If you need this functionality it appears you have no alternative but to pay a developer a solution. I am becoming more and more frustrated with Shopify and the fact that you have to stick your hand in your pocket everytime you want a basic function such as showing the HS code on shipping paperwork or defining shipping rules based on weight. These functions should be standard.

Hi @deranged and @TG-Admin,


I have finally created a solution to this issue. No more spending a lot of money on this now.

Reach out to me at


New Member
1 0 1

Could someone share an answer for this? I'm also unable to output the Variant country of origin.

New Member
1 0 3

We're having the same issue & I agree - this is now a  requirement for any business sending goods overseas and Shopify really should have a solution for it.

New Member
8 0 0

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.