As suggest the title; what I want to do is to set url in my email template different depending on locale language.

What I tried to do:

config path='web/unsecure/base_url'}}{{config path='general/locale/code'}}/generic-url-key

to get something like mysite.net/en/generic-url-key or mysite.net/fr/generic-url-key

The problem is that the variable:


return something like en_EN, fr_FR and I can't this value in my url

Is possible to set my own variable in database that return me something like "en", "fr"? How does magento will return me the value depending on locale lang?


1 Answer 1


I had to use Customer Account URL:

{{var this.getUrl($store, 'customer/account/')}}

and set url-key per language on the back office

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.