Skip to main content

Registration - include language in activation url

15 years 7 months ago #12422 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.

Please Log in or Create an account to join the conversation.

15 years 7 months ago #12429 by nicolas
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

Please Log in or Create an account to join the conversation.

Time to create page: 0.044 seconds
Powered by Kunena Forum