Jump to content

Get an email after a new user registers


vskand

Recommended Posts

Hi all, 

I've developed a very simple module that will send an email to a specified (by the admin) email address to let them know a new user has registered.

When a new customer registers, the actionCustomerAccountAdd hook is fired and I am using this to send an email that includes the users' email and prestashop ID.

I couldn't create a link to the admin to directly go to the edit page of the user.

For some reason _PS_ADMIN_DIR_ was returning "admin" instead of my actual admin directory.
If anyone has a solution for this let me know.

Thanks

newcustomeremailnotif.zip

Link to comment
Share on other sites

Hi,

it's just a question of security, it's not possible to have this information.

If you really want to open the door to potential hackers, you can always store this information in a variable in your module, but that's a very, very bad idea.

Link to comment
Share on other sites

11 hours ago, Mediacom87 said:

Hi,

it's just a question of security, it's not possible to have this information.

If you really want to open the door to potential hackers, you can always store this information in a variable in your module, but that's a very, very bad idea.

Ah, yeah that makes sense!

Link to comment
Share on other sites

  • endriu107 changed the title to Get an email after a new user registers

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...