Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
When the customer gets the confirmation mail it states that "I agree to the trems and conditions" followed by "Yes". The first part is translated but I cannot find where to translate the "Yes".
Offline
Hi, 'yes' and 'no' are actually database values, so we populate the values directly.
Is it only the checkbox values that you're seeing yes (or no) for? If so, a work-around would be to edit the file that produces the email. To do so, edit the file backlight/modules/module-cart/application/models/OrderDetails.php and change line 176 from this:
$orderdetails .= $formatter->valueRow($checkbox['title'], $checkbox['value']);
to this:
$orderdetails .= $formatter->valueRow($checkbox['title'], $checkbox['value'] == 'yes' ? 'ja' : 'nej');
(assuming 'ja' and 'nej' are the translations you're looking for)
Offline
It is the only one I have seen so far. I will try the work around
Offline
I did the change and it worked as requested which is indeed "ja" and "nej" (although I can't picture the scenario where you would get a "No" in the e-mail since it is a mandatory checkbox)
I am utterly impressed by the speed and accuracy of your response as well with the clarity of the instruction
Thanx a million
Offline
I'm glad that solved it for you. Thanks for the kind words!
Offline