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

  • Thanks 1
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
  • 8 months later...
41 minutes ago, Kami Solutions said:

Hi,

 

thanks for the module, works nice on 8.2 but would be nice if you can add some fields to the email like:

-Customer full name

-Customer address (if possible)

 

Hello @Kami Solutions I will see what is available as data on that hook and let you know. If this info is available should be easy to add.
I'll take a look tomorrow. 

Link to comment
Share on other sites

On 12/8/2024 at 7:38 PM, Kami Solutions said:

Hi,

 

thanks for the module, works nice on 8.2 but would be nice if you can add some fields to the email like:

-Customer full name

-Customer address (if possible)

 

Hello @Kami Solutions I am attaching an updated version that includes the name and surname as well. 
The address might be possible to be added but I don't have the time right now. 
When a user registers, they do not have to add an address so it's not immediately available.

Maybe something for the future. 

Hope this helps you a bit.

Thanks

newcustomeremailnotif.zip

Link to comment
Share on other sites

1 hour ago, vskand said:

Hello @Kami Solutions I am attaching an updated version that includes the name and surname as well. 
The address might be possible to be added but I don't have the time right now. 
When a user registers, they do not have to add an address so it's not immediately available.

Maybe something for the future. 

Hope this helps you a bit.

Thanks

newcustomeremailnotif.zip 54.2 kB · 0 downloads

Thank you! Will give a try and let you know

Link to comment
Share on other sites

On 12/10/2024 at 9:15 AM, vskand said:

Hello @Kami Solutions I am attaching an updated version that includes the name and surname as well. 
The address might be possible to be added but I don't have the time right now. 
When a user registers, they do not have to add an address so it's not immediately available.

Maybe something for the future. 

Hope this helps you a bit.

Thanks

newcustomeremailnotif.zip 54.2 kB · 2 downloads

Something must be off, I suddenly stopped receiving the emails, can you please check if there is something wrong?

 

Thanks!

Link to comment
Share on other sites

3 hours ago, Kami Solutions said:

Something must be off, I suddenly stopped receiving the emails, can you please check if there is something wrong?

 

Thanks!

@Kami Solutions I will check it but please in the meantime install the old module again so that you receive the emails. 

Link to comment
Share on other sites

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