Darkaim13 Posted April 23, 2015 Share Posted April 23, 2015 Hi to you all, I'm having a problem with my email links. Every link in the emails redirect to wrong language. My site is in Greek and English. The language of the emails is correct (Greek) but the links that get the customer back to my shop redirect to the English site. Any way to fix that? I tried changing Mail.php from this: $template_vars['{shop_url}'] = Context::getContext()->link->getPageLink('index', true, Context::getContext()->language->id, null, false, $id_shop); $template_vars['{my_account_url}'] = Context::getContext()->link->getPageLink('my-account', true, Context::getContext()->language->id, null, false, $id_shop); $template_vars['{guest_tracking_url}'] = Context::getContext()->link->getPageLink('guest-tracking', true, Context::getContext()->language->id, null, false, $id_shop); $template_vars['{history_url}'] = Context::getContext()->link->getPageLink('history', true, Context::getContext()->language->id, null, false, $id_shop); to this: $template_vars['{shop_url}'] = Context::getContext()->link->getPageLink('index', true, Context::getContext()->languages->el, null, false, $id_shop); $template_vars['{my_account_url}'] = Context::getContext()->link->getPageLink('my-account', true, Context::getContext()->languages->el, null, false, $id_shop); $template_vars['{guest_tracking_url}'] = Context::getContext()->link->getPageLink('guest-tracking', true, Context::getContext()->languages->el, null, false, $id_shop); $template_vars['{history_url}'] = Context::getContext()->link->getPageLink('history', true, Context::getContext()->languages->el, null, false, $id_shop); but didn't work. Any idea? Link to comment Share on other sites More sharing options...
sting5 Posted August 28, 2015 Share Posted August 28, 2015 Bump - I have the same problem, every email contains english language links, despite the language the customer chose. Anyone managed to solve this? Link to comment Share on other sites More sharing options...
vekia Posted August 30, 2015 Share Posted August 30, 2015 you use some custom email templates ? what ps version? Link to comment Share on other sites More sharing options...
sting5 Posted August 31, 2015 Share Posted August 31, 2015 Hi Vekia, well, mines is 1.6.0.14 - and yes, emails are from starshop (leothemes) - the thing is, urls currently look like this (in HTML): href="{history_url}" href="{guest_tracking_url}?id_order={order_name}" seems that the definition is correct - there's something that makes them see wrong language - prestashop always gives links as in english, and fails to see that there are other languages installed or something... Link to comment Share on other sites More sharing options...
mmsh Posted April 8, 2016 Share Posted April 8, 2016 hello, I have the same issue on 1.6.1.4 eg. mail for "Preparation in progress" now it comes with the footer links as default language, while the email content language is correct... where is the bug? thanks Link to comment Share on other sites More sharing options...
am79 Posted December 7, 2016 Share Posted December 7, 2016 (edited) Hello, may I know why this edit https://github.com/PrestaShop/PrestaShop/pull/4393/files is still not on master ? even if ps updated... again issues with lang links on the email when change order status... hey.... Edited December 7, 2016 by am79 (see edit history) 1 Link to comment Share on other sites More sharing options...
Jignesh.aakoliya Posted December 8, 2016 Share Posted December 8, 2016 Hello, may I know why this edit https://github.com/PrestaShop/PrestaShop/pull/4393/files is still not on master ? even if ps updated... again issues with lang links on the email when change order status... hey.... By using github pull mention by @am79 you can solve that problem thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now