Developer forum

Forum » Templates » Multi language email notifications for Order Status Change

Multi language email notifications for Order Status Change

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,
This is an old situation we have struggled with with no reasonable solution so far.
We have a project with multiple websites in different languages but using a single Shop.
We have a Default order flow, with some Order statuses and we are supposed to send some emails when Order status is changed. 
Because there is no Area context or Language context, the regular Translate tag is not working as it should. I have tried passing a culture code to the Translate tag but it seems to be inconsistent.

Is there a new way of handling this in DW9? Maybe using a property of the order to set the language or area ID context?
I have also considered sending the emails with Email Marketing with a customdelivery provider but this would mean creating a delivery provider for each combination of website-Language-order state and even with this, I am not sure if would be able to override the "Email allowed" option.

Any suggestions would be highly appreciated :)

Thank you,
Adrian


Replies

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Anybody?

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi,

I've checked DW9\10 as follows: The Swift solution has one shop has products created ind defualt English and translated to extra ecom language (Denmark). Order flow has state (Rejected) translated to the language as well and setup with template to mail to billing email address, it has simple <!--@Translate(shoppingbasket, "Shopping Basket")--> html tag inside. Note the string has appropriate translation of the key to Danish in Settings-Translations-Swift. There are master site and slave under the translated language. I've used extranet user to login in frontend. So, I've created one order via master site and extra one in slave accordingly - note the order get product has translated name (OK). Upon staing in the order details in backend, I assign-change the state ans save the order, so receive appropriate email has correct product name per language where the order was submitted, the text with tranlsation tag is output as "Shopping Basket" for order created in master site and "Indkøbskurv" for second one. All is done as expected in my view. What's wrong or I inderstand your case wrongly??

BR, Oleg QA    

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Oleg,

In my case, the translation tags included in the email message are using the default language and not the context of the Area/Ecom Language.

The product name is correctly rendered basedon the context of the order. Only the translation tags seem to be off.
In my case, it is a project we migrated from Rapido to Swift, but the Email templates were somewhat independent.
I will try to replicate your scenario on a clean Swift solution just to eliminate any possible interference of our development.

Thank you,
Adrian

 

You must be logged in to post in the forum