How can I modify the User account notification to Administrator?

  • Posts: 5
  • Thank you received: 0
  • Hikashop Business Hikashop Style
1 week 2 days ago #337348

-- 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

Attachments:

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

  • Posts: 74250
  • Thank you received: 11418
  • MODERATOR
1 week 1 day ago #337350

Hi,

You can't do it like that.
Instead, you can add such lines of code:

echo $data->address_data->address_title;
echo $data->address_data->address_firstname;
etc after the );

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

  • Posts: 5
  • Thank you received: 0
  • Hikashop Business Hikashop Style
1 week 1 day ago #337360

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;

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

  • Posts: 74250
  • Thank you received: 11418
  • MODERATOR
1 week 1 day ago #337363

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.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum