For anyone struggling with invoice print including HS code, I managed to include this code
**** {% if show_line_item_taxes %} {% endif %} {% for line_item in line_items %} **** {% if show_line_item_taxes %}| Quantity | Item | HSN Code | Taxes | Price |
|---|---|---|---|---|
| {{ line_item.quantity }} x | {{ line_item.title }} | {{ line_item.variant.metafields.harmonized_system_code.value }} |
Hope it works for others too |