Registration - include language in activation url

  • Posts: 1
  • Thank you received: 0
13 years 7 months ago #12422

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #12429

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.041 seconds
Powered by Kunena Forum