Jump to content

Language Strings of {$order_details}

Recommended Posts


I am not able to find the language strings of the {$order_details} merge fields of the welcome email template.

I found in the engl. lang file similar strings and added it in another language but it does not work out. Are these strings saved somewhere else?

Link to comment
Share on other sites

On 22/05/2021 at 13:01, SSCommerce said:

I am not able to find the language strings of the {$order_details} merge fields of the welcome email template.

the $order_details merge field is created during the order creation and consists of language variables and variables - but once written and passed to the template, the merge field is just one long string of text/html - so changes to the language strings will have no effect on it (the email templates don't use Language strings in the same sense as the web site templates anyway).

so changes to relevant language strings would only impact the content of $order_details in future orders.

Link to comment
Share on other sites


Here is an example of the fields, which are jsut in english avaibale:

First Payment Amount: € 0,00 EUR
Recurring Amount: € 4,11 EUR
Billing Cycle: Monthly

I searched the en lang file for these and found these strings and translated it:

$_LANG['firstpaymentamount'] = "Erste Zahlung";
$_LANG['recurringamount'] = "Wiederkehrende Zahlung";
$_LANG['orderbillingcycle'] = "Rechnungszyklus";
$_LANG['orderproduct'] = "Produkt/Service";
$_LANG['ordertotalduetoday'] = "Heute fällig";

Somehow it did not take effect on the next order...

Any advice?


Link to comment
Share on other sites

On 24/05/2021 at 17:28, SSCommerce said:

Any advice?

the email templates themselves don't directly use language strings (unlike the client/admin areas) - yes they are used in the creation of some variables that can get passed to the template, but the template themselves cannot use them.

you can create translated versions of any email template...


so for example, if you created a German translated version of an email template, and the client was using the German language, then the German translated email template should be used (if it exists for that template).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated