- Posts: 8
- Thank you received: 0
How can I modify the User account notification to Administrator?
- psteinhilber
-
Topic Author
- Offline
Less
More
4 years 11 months ago #337348
by psteinhilber
-- HikaShop version -- : 4.4.4
-- Joomla version -- : 3.10.3
-- PHP version -- : 7.4
-- Browser(s) name and version -- : Firefox 94.01
Hello,
I was wondering, how I can modify the user account notification to administrator because we need all information about the registered user to make manual activation.
I tried really hard to make these changes in the Systems Email tab and i have modified the content:
<?php
/**
* @package HikaShop for Joomla!
* @version 4.4.4
* @author hikashop.com
* @copyright (C) 2010-2021 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
echo JText::sprintf(
'HIKA_USER_ACCOUNT_ADMIN_NOTIFICATION_BODY',
$data->name,
$data->email,
$data->address_company,
$data->address_title,
$data->address_firstname,
$data->address_lastname ,
$data->address_street,
$data->address_post_code,
$data->address_city,
$data->address_country,
$data->address_telephone,
$data->address_vat,
$data->customerno,
HIKASHOP_LIVE
);
----
But in the Preview and my Mailbox I geht only a short Email:
How can this be done in Hikashop?
Regards
Peter
PS: Paid Hikshop Business Version
-- Joomla version -- : 3.10.3
-- PHP version -- : 7.4
-- Browser(s) name and version -- : Firefox 94.01
Hello,
I was wondering, how I can modify the user account notification to administrator because we need all information about the registered user to make manual activation.
I tried really hard to make these changes in the Systems Email tab and i have modified the content:
<?php
/**
* @package HikaShop for Joomla!
* @version 4.4.4
* @author hikashop.com
* @copyright (C) 2010-2021 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
echo JText::sprintf(
'HIKA_USER_ACCOUNT_ADMIN_NOTIFICATION_BODY',
$data->name,
$data->email,
$data->address_company,
$data->address_title,
$data->address_firstname,
$data->address_lastname ,
$data->address_street,
$data->address_post_code,
$data->address_city,
$data->address_country,
$data->address_telephone,
$data->address_vat,
$data->customerno,
HIKASHOP_LIVE
);
----
But in the Preview and my Mailbox I geht only a short Email:
How can this be done in Hikashop?
Regards
Peter
PS: Paid Hikshop Business Version
Please Log in or Create an account to join the conversation.
4 years 11 months ago #337350
by nicolas
Replied by nicolas on topic How can I modify the User account notification to Administrator?
Hi,
You can't do it like that.
Instead, you can add such lines of code:
etc after the );
You can't do it like that.
Instead, you can add such lines of code:
Code:
echo $data->address_data->address_title;
Code:
echo $data->address_data->address_firstname;
Please Log in or Create an account to join the conversation.
- psteinhilber
-
Topic Author
- Offline
Less
More
- Posts: 8
- Thank you received: 0
4 years 11 months ago #337360
by psteinhilber
Replied by psteinhilber on topic How can I modify the User account notification to Administrator?
Hello,
Thank you for the fast response.
Now I have added this codelines to the template, but I didn't get the information in the Mailpreview:
<?php
/**
* @package HikaShop for Joomla!
* @version 4.4.4
* @author hikashop.com
* @copyright (C) 2010-2021 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
echo JText::sprintf(
'HIKA_USER_ACCOUNT_ADMIN_NOTIFICATION_BODY',
$data->name,
$data->email,
HIKASHOP_LIVE
);
echo $data->address_data->address_company;
echo $data->address_data->address_title;
echo $data->address_data->address_firstname;
echo $data->address_data->address_lastname;
echo $data->address_data->address_street;
echo $data->address_data->address_postcode;
echo $data->address_data->address_city;
echo $data->address_data->address_country;
echo $data->address_data->address_telephone;
echo $data->address_data->address_vat;
echo $data->address_data->address_customerno;
Thank you for the fast response.
Now I have added this codelines to the template, but I didn't get the information in the Mailpreview:
<?php
/**
* @package HikaShop for Joomla!
* @version 4.4.4
* @author hikashop.com
* @copyright (C) 2010-2021 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
echo JText::sprintf(
'HIKA_USER_ACCOUNT_ADMIN_NOTIFICATION_BODY',
$data->name,
$data->email,
HIKASHOP_LIVE
);
echo $data->address_data->address_company;
echo $data->address_data->address_title;
echo $data->address_data->address_firstname;
echo $data->address_data->address_lastname;
echo $data->address_data->address_street;
echo $data->address_data->address_postcode;
echo $data->address_data->address_city;
echo $data->address_data->address_country;
echo $data->address_data->address_telephone;
echo $data->address_data->address_vat;
echo $data->address_data->address_customerno;
Please Log in or Create an account to join the conversation.
4 years 11 months ago #337363
by nicolas
Replied by nicolas on topic How can I modify the User account notification to Administrator?
Hi,
Well, the preview doesn't provide the address data, since it's normally not needed by the email.
If you want to see if the code works or not, you need to do a real test with a real registration.
Well, the preview doesn't provide the address data, since it's normally not needed by the email.
If you want to see if the code works or not, you need to do a real test with a real registration.
Please Log in or Create an account to join the conversation.
Time to create page: 0.057 seconds