I have created a multilingual website on Shopify in Japanese and English.
I use T Lab - AI Language Translate( https://apps.shopify.com/content-translation?locale=ja ) for language translation.
I use Order Printer( https://apps.shopify.com/order-printer?locale=ja ) to print Invoice.
*What I want to do
I want to output product metafields to Order Printer’s Invoice.
*Details
I am a Japanese engineer.
I have created a multilingual website on Shopify in Japanese and English.
I would like to put the English translated product name on the Order Printer Invoice. However, I know that this is not possible with T Lab - AI Language Translate.
As an alternative idea, I am thinking of entering the English translated product name in the meta field and putting it on the Order Printer Invoice.
I saw the following community post
https://community.shopify.com/c/shopify-apps/order-printer-metafield/td-p/317957
I took a look at these community posts and tried to write the program code.
However, the meta fields were not output.
Example 1 → Nothing is output.
{% for line_item in line_items %}
{{ line_item.product.metafields.custom.en_product_name.value }}
{% endfor %}
Example 2 → Nothing is output.
{% for line_item in line_items %}
{{ line_item.product.metafields.custom.en_product_name }}
{% endfor %}
Example 3 → Nothing is output.
{{ product.metafields.custom.en_product_name }}
Example 4 → Nothing is output.
{{ product.metafields.custom.en_product_name.value }}
Please can you help me with a solution?
