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?