Email Customer Details to Admin

  • Posts: 214
  • Thank you received: 1
11 years 1 month ago #128840

Hi There,

Currently when a customer signs up, admin gets an email notification saying,

"Hello administrator,

A new user 'Name', username 'Email address', has registered at 'Website Name'."

I was wondering if there was a way to edit this email so it emailed admin with the address details that the customer entered when registering. I've found which I assume is the correct email under System>Email>User account administrator notification, but it's all in PHP and I'm not very clear on PHP code.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 1 month ago #128873

Hi,

The user details that you want to add should be stored in the variable "$data", to know the content of the variable, you can use the function var_dump(), ex: var_dump($data);

So you'll be able to display your user details like this for example : echo 'Username : '.$data->username;[code][code]echo 'Username : '.$data->username;[code]

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

Time to create page: 0.065 seconds
Powered by Kunena Forum