Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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.
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
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)
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025