Hi @knut_studio
Exactly – at the moment, it seems to be the intended way. I’m not 100% certain about translating the inbuilt WC order table translation, but this one should get translated automatically (via WooCommerce translation).
Edit: It’s definitely based on WooCommerce string translation.
Using WPML the inbuilt WC order table is translated with string translation, I think. At least, the table is the only thing I was getting in the correct language, when receiving the email after a successful order.
Ah, I see – thank you for this piece of the puzzle . Since I just tried to translate emails in theory to this point, I wasn’t 100% sure about the behavior of the WC orders table. Your reply does indeed confirm, that the WooCommerce-elements are translated automatically by String-translations.
Thanks for clearing up.
I was following your suggestions to display different content on the Order Confirmation email from WooCommerce (via Bricksforge’s E-mail Designer), depending on the language that the user placed the order on the site.
You said:
The condition should be: getLocale() == "en_US" .
So I have set an IF - ELSE IF - ENDIF condition (I have two languages on the site, configured with WPML), like this:
However, when testing it doesn’t work. I receive the email with no content at all. I have testes placing the order from the Catalan version of the website and the Spanish one. In both cases, I get the email without any of the content between the IF - ELSE IF - ENDIF. Just the header, the automatic WC table, and the footer.
Do you know what’s going on? Is there any problem with the condition?