Adding HS Code and Country of Origin to Packing List

Adding HS Code and Country of Origin to Packing List

heirloom-joel
Visitor
1 0 3

I need to add the Harmonized System Code (HS Code) and Country of Origin to the packing list however I cannot find the liquid snippet anywhere for this. Shopify haven't bothered to document this despite both items now being fields under a product variant.

I have even tried creating a custom variant metafield but this doesn't work either. Maybe I'm not putting it in correctly?

So if anyone has managed to get the above to work, please enlighten me. I will be most grateful. I do not want to use an app for what is essentially a few lines of code that Shopify can't be arsed to provide.

Replies 2 (2)

medlingtonQPS
Shopify Partner
28 0 9

Did you ever find a solution to this?

 

I also need to display it and also the products barcode which doesn't seem to work

Thomas_Lang1
Shopify Partner
238 6 56

You can get the HS Code with:

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



I was not able to find any way to get country of origin in the default packing slip, so we built in in our own app
Order Related Documents

https://apps.shopify.com/order-related-documents

 

if you use the default packing slip template, then click edit document to open the drag and drop editor, select the line items component, and enable it in the available fields section. (we also have an HS code field, and are working on adding metafield values as well)

 

screenshot.jpg

Software Developer | Owner of Tom IT - We build shopify apps
Marketplace Order Connector | Amazon bol.com & Walmart DSV
Order Related Documents | Print documents, Email document &Autoprint
Blog Product Spotlight | Add products to your blog articles!