Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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;
Solved! Go to the solution
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.
Really looking for this as well
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.
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024