All things Shopify and commerce
Hello Team!
I am looking for to add country_of_origin of the Product on email notifications.
For Ex: Order invoice Notification.
The value is already added on the Product at admin side.
I have try many solution but not succeed.
Try with below code:
{{ line.variant.metafields.custom.country_of_origin }}
{{ line_item.product.metafields.custom.country_of_origin }}
Thanks in advanced!
Mohit P.
Hi @mohitp
You can consider trying the below code to see if it works:
{% for line in order.line_items %}
<tr>
<td>{{ line.product.title }}</td>
<td>{{ line.quantity }}</td>
<td>{{ line.price }}</td>
<td>{{ line.variant.metafields.custom.country_of_origin }}</td>
</tr>
{% endfor %}
I hope this can help.
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024