- Posts: 1
- Thank you received: 0
Registration - include language in activation url
15 years 6 months ago #12422
by vamirez
Registration - include language in activation url was created by vamirez
How can I add the current language to the activation url in the registration email?
For example, if a user selects a different language and then registers, but clicks the link in the confirmation email an hour later (so his session ended in the meantime), the confirmation page comes up in the default language, and not the one selected by the user.
For example, if a user selects a different language and then registers, but clicks the link in the confirmation email an hour later (so his session ended in the meantime), the confirmation page comes up in the default language, and not the one selected by the user.
Please Log in or Create an account to join the conversation.
15 years 6 months ago #12429
by nicolas
Replied by nicolas on topic Re: Registration - include language in activation url
You can change the line:
$app->redirect(hikashop::completeLink('checkout&task=activate_page',false,true));
by:
$lang = &JFactory::getLanguage();
$locale=strtolower(substr($lang->get('tag'),0,2));
$app->redirect(hikashop::completeLink('checkout&task=activate_page&lang='.$locale,false,true));
in the file administrator/components/com_hikashop/classes/user.php
$app->redirect(hikashop::completeLink('checkout&task=activate_page',false,true));
by:
$lang = &JFactory::getLanguage();
$locale=strtolower(substr($lang->get('tag'),0,2));
$app->redirect(hikashop::completeLink('checkout&task=activate_page&lang='.$locale,false,true));
in the file administrator/components/com_hikashop/classes/user.php
Please Log in or Create an account to join the conversation.
Time to create page: 0.129 seconds