It is possible to have templates in multiple languages, so they correspond to the language your customer used when placing the order, but it does require some initial setup.
The following are instructions if you are using translation apps such as WeGlot, Langify v2, Translation Lab, Translate My Store, etc., or if you use Shopify Markets on your website:
Step 1
Customize the template in Order Printer Templates for Language 1, then export the code and save it into a file.
Note: You must first purchase the template to export the code.
Step 2
Go back into the Order Printer Templates editor and update your template to Language 2. Then, export the new code and save it to a separate file.
Step 3
Use the code below to place the full template code into the correct section:
{% assign language_code = attributes.lang | default: customer_locale | split: "-" | first %}
{% case language_code %}
{% when 'de' %}
GERMAN TEMPLATE CODE
{% when 'es' %}
SPANISH TEMPLATE CODE
{% else %}
DEFAULT LANGUAGE CODE
{% endcase %}
💡This is just an example; make sure to copy the correct language code (e.g., 'de' for German) from your translation app account.
Here is another example if you want to translate the documents into Spanish only:
{% assign language_code = attributes.lang | default: customer_locale | split: "-" | first %}
{% case language_code %}
{% when 'es' %}
SPANISH TEMPLATE CODE
{% else %}
ENGLISH TEMPLATE CODE
{% endcase %}
Step 4
Copy and paste the entire code into the template in your order printer app; either Order Printer by Shopify or our Order Printer Pro.
That's it; you're all set up! Now the template language will match the one your customer used when placing the order.
💡Tip
If you want to set the template language based on the currency and not the language used, you may use this code instead:
{% case currency %}
{% when 'EUR' %}
TEMPLATE CODE FOR ORDERS IN EUR
{% when 'GBP' %}
TEMPLATE CODE FOR ORDERS IN GBP
{% else %}
TEMPLATE USED FOR ORDERS IN OTHER CURRENCIES
{% endcase %}
Having more questions? No worries, get in contact with our support team using the message icon on the lower right corner of this page.