vskand Posted March 8 Share Posted March 8 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 1 Link to comment Share on other sites More sharing options...
Mediacom87 Posted March 8 Share Posted March 8 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 More sharing options...
vskand Posted March 9 Author Share Posted March 9 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 More sharing options...
Kami Solutions Posted December 8 Share Posted December 8 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) Link to comment Share on other sites More sharing options...
vskand Posted December 8 Author Share Posted December 8 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 More sharing options...
vskand Posted December 10 Author Share Posted December 10 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 More sharing options...
Kami Solutions Posted December 10 Share Posted December 10 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 More sharing options...
Kami Solutions Posted December 11 Share Posted December 11 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 More sharing options...
vskand Posted December 11 Author Share Posted December 11 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 More sharing options...
vskand Posted December 11 Author Share Posted December 11 @Kami Solutions Just checked with presta 8.2 and it's working. Please check that in the configuration of the module it's set to "Enabled". It might have changed to "false" with the update. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now