SSCommerce Posted May 22, 2021 Share Posted May 22, 2021 Hi, 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? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 24, 2021 Share Posted May 24, 2021 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. 1 Quote Link to comment Share on other sites More sharing options...
SSCommerce Posted May 24, 2021 Author Share Posted May 24, 2021 Thanks! Here is an example of the fields, which are jsut in english avaibale: First Payment Amount: € 0,00 EURRecurring Amount: € 4,11 EURBilling 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? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 1, 2021 Share Posted June 1, 2021 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... https://docs.whmcs.com/Email_Templates#Translating_Email_Templates 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). 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.