Customize administrator user registration email

  • Posts: 37
  • Thank you received: 0
9 years 8 months ago #195824

-- url of the page with the problem -- : www.accuratesurgical.com/products/user/form
-- HikaShop version -- : HikaShop [1411161808]
-- Joomla version -- : 2.5.28
-- PHP version -- : 5.4.34
-- Browser(s) name and version -- : Chrome Version 41.0.2272.89

I want to include all of the fields for this registration form in the administrator email for activations.
www.accuratesurgical.com/products/user/form


Abstract Image Group | Fulfilling all of your large format printing needs!

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

  • Posts: 37
  • Thank you received: 0
9 years 8 months ago #195825

This is the email I receive currently.


Abstract Image Group | Fulfilling all of your large format printing needs!
Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 8 months ago #195826

Hi,

You need to override the email "user_account_activation" in your HikaShop email (System > Emails).
(please note that the email edition is provided by HikaShop Business ; version that you have, but just in case)

In the $data variable you will have access to all registration field that HikaShop had when the user registered.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 37
  • Thank you received: 0
9 years 8 months ago #195925

Ok great, and where would I find the ID's for those custom fields to place in the form? I am assuming it will be something like $data->address_street? I also noticed that I do not see a "user_account_activation" email present. I have "User account administrator notification" and "User Account"


Abstract Image Group | Fulfilling all of your large format printing needs!

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 7 months ago #195933

Hi,

It's the "User account administrator notification" email.
For custom user fields, it's that code:
echo $data->user_data->field_column_name;

For custom address fields, it's that code:
echo $data->address_data->field_column_name;

And if the column name of your custom field is address_street, then it would be that code:
echo $data->address_data->address_street;

The following user(s) said Thank You: abstractimagegroup

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

  • Posts: 37
  • Thank you received: 0
9 years 7 months ago #195962

Thank you, Ill give it a try


Abstract Image Group | Fulfilling all of your large format printing needs!

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

  • Posts: 37
  • Thank you received: 0
9 years 7 months ago #196809

This information did not work. Applying the changes specified did not change the admin email at all and forced a blank screen upon submit when registering. Any ideas?


Abstract Image Group | Fulfilling all of your large format printing needs!

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 7 months ago #196871

Hi,

If you have a blank screen when performing a registration means that you have a PHP fatal error in your email.
You should take a look at your PHP error log or set your "error reporting level" to "maximum" in your Joomla global configuration (activating the Joomla debug mode can also help).
So you will have more details about the error and you will be able to fix the PHP code.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 86
  • Thank you received: 4
  • Hikashop Business
9 years 1 month ago #215771

Afternoon Nicolas,

echo $data->address_data->field_column_name;

should be:

echo $data->address_data->field_column_name,

Also from one of your other informative posts, change the language file under:

HIKA_USER_ACCOUNT_ADMIN_NOTIFICATION_BODY

and add an extra %s for each extra field you want to display in the confirmation email

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

  • Posts: 99
  • Thank you received: 5
7 years 4 months ago #273412

--EDIT--
* selecting the correct template AND making sure the edits are in the text version as well seems to be the trick to make it work.


Hello,
I found this thread for adding extra data to the ADMIN NOTIFICATION EMAIL and I have tried to make this happen but I cannot make it work.

The code i am using is below -I think I am doing something wrong but do not what?

Do you have any suggestions?
<?php
/**
* @package HikaShop for Joomla!
* @version 3.1.1
* @author hikashop.com
* @copyright (C) 2010-2017 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->username,
HIKASHOP_LIVE,
$data->address_data->address_company,
$data->address_data->address_city,
$data->address_data->address_telephone
);

Last edit: 7 years 4 months ago by byoguru.

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

Time to create page: 0.080 seconds
Powered by Kunena Forum