Hi,
I did what you suggested and I altered registration.php and I've used the following code;
$db->setQuery(
'SELECT * FROM '.$db->quoteName('#__hikashop_user').' as a JOIN '.$db->quoteName('#__hikashop_address').' as b '
.'WHERE a.user_id = b.address_user_id AND '.$db->quoteName('user_cms_id').' = '.$userId
);
$userInfo = $db->loadObject();
And
$emailBody = JText::sprintf(
'COM_USERS_EMAIL_ACTIVATE_WITH_ADMIN_ACTIVATION_BODY',
$data['sitename'],
$data['name'],
$data['email'],
$data['username'],
$userInfo->user_company_name,
$userInfo->user_line_of_business,
$userInfo->user_vat_nr,
$userInfo->user_work_tel,
$userInfo->user_fax,
$userInfo->user_mobile,
$userInfo->user_language,
$userInfo->user_already_customer,
$userInfo->user_wish_newsletter,
$userInfo->user_opening_hours,
$userInfo->user_closing_days,
$userInfo->address_title,
$userInfo->address_firstname,
$userInfo->address_lastname,
$userInfo->address_street,
$userInfo->address_box,
$userInfo->address_post_code,
$userInfo->address_city,
$userInfo->address_telephone,
$userInfo->address_country,
$data['siteurl'].'index.php?option=com_users&task=registration.activate&token='.$data['activation']
);
It seems to work.
If you have any suggestion then please feel free to make correction/modification to the code above.
Too bad there wasn't an email template available to begin with.
If you guys are willing to put this on the todo-list that would be great and we won't need to hack the joomla files.
I know it's not a priority so even if it gets done later that would be better than nothing.
Thanks for pointing me in the right direction.
Greets