All Collections
Order Printer Templates
Translation & multi-language
Multi-language setup (Translation apps or Shopify Markets)
Multi-language setup (Translation apps or Shopify Markets)

Instructions for setting up multi-language templates in Order Printer or Order Printer Pro, with any of these apps.

Blanca Gongora avatar
Written by Blanca Gongora
Updated over a week ago

It is possible to have the templates in multiple languages so they correspond to the language your customer used while placing the order, but it does take some setup initially.

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 be able to export the code.

Step 2

Go back into the Order Printer Templates editor and update your template into Language 2, then export the new code and save it into another file.

Step 3
Use the below code, 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 only an example; make sure to copy the correct language code (example: 'de' for the German language) 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 into 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 correspond to the one your customer used while 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.

Did this answer your question?