Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Translate / Change the 'Payment Terms Name' on invoices, etc.

Solved

Translate / Change the 'Payment Terms Name' on invoices, etc.

mmjjanssen
Shopify Partner
16 2 4

When looking at, for example, an invoice I notice the 'payment_terms' in the top right, but would like to be able to change these translations. At the moment it's printed as 'Net 7', but I would like to translate this.

 

The liquid variable is 

{{ payment_terms.payment_terms_name }}

Is there an option to do this? I can't find it in the general settings, theme settings (Dawn), language settings or the language related json files.

 

As example the following screenshot;

 

Scherm­afbeelding 2024-02-01 om 11.32.02 kopie.png

...
Accepted Solution (1)

DevPatrick
Visitor
1 1 1

This is an accepted solution.

So, payment_terms is a read only object field called paymentTerms and is used in the DraftOrder, Order and PaymentSchedule objects and its found in the REST Admin API (legacy since October 1st).

 

What I did to get the correct string printed/translated:

{% if payment_terms.name == ' Net 7'  %}

<p> Binnen 7 dagen na factuurdatum. </p>

{% endif %}


Hope this helps you figuring out your custom solution.

View solution in original post

Replies 2 (2)

amosmos
Shopify Partner
89 1 32

Really looking for this as well

DevPatrick
Visitor
1 1 1

This is an accepted solution.

So, payment_terms is a read only object field called paymentTerms and is used in the DraftOrder, Order and PaymentSchedule objects and its found in the REST Admin API (legacy since October 1st).

 

What I did to get the correct string printed/translated:

{% if payment_terms.name == ' Net 7'  %}

<p> Binnen 7 dagen na factuurdatum. </p>

{% endif %}


Hope this helps you figuring out your custom solution.