vskand Posted March 8, 2024 Share Posted March 8, 2024 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 2 Link to comment Share on other sites More sharing options...
Mediacom87 Posted March 8, 2024 Share Posted March 8, 2024 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, 2024 Author Share Posted March 9, 2024 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, 2024 Share Posted December 8, 2024 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, 2024 Author Share Posted December 8, 2024 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, 2024 Author Share Posted December 10, 2024 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, 2024 Share Posted December 10, 2024 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, 2024 Share Posted December 11, 2024 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, 2024 Author Share Posted December 11, 2024 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, 2024 Author Share Posted December 11, 2024 @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...
dododo Posted January 2 Share Posted January 2 @vskand Hi, thanks for this module but neither version works. I have prestashop 8.1.7. you can check that it works. Thank you Link to comment Share on other sites More sharing options...
vskand Posted January 2 Author Share Posted January 2 4 hours ago, dododo said: @vskand Hi, thanks for this module but neither version works. I have prestashop 8.1.7. you can check that it works. Thank you @dododo Did you check that it's enabled inside the module settings? After adding your email. Does your shop otherwise send emails? Link to comment Share on other sites More sharing options...
dododo Posted January 2 Share Posted January 2 Yes, enabled in both versions. Email is configured correctly. Send registration confirmation, order status etc... I receive order confirmation and stock status of out of stock products. Link to comment Share on other sites More sharing options...
vskand Posted January 3 Author Share Posted January 3 10 hours ago, dododo said: Yes, enabled in both versions. Email is configured correctly. Send registration confirmation, order status etc... I receive order confirmation and stock status of out of stock products. I don't have 8.1.7 to check tbh. Can you please go to Design > Positions check the "Display non-positionable hooks" and search for "actionCustomerAccountAdd" If you don't see the module there you have to add it so that it runs in this hook. Otherwise if you want we can share screen and debug it on your end. Link to comment Share on other sites More sharing options...
dododo Posted January 3 Share Posted January 3 Good morning VSKAND, everything seems to be ok. How can you help me remotely? Link to comment Share on other sites More sharing options...
dododo Posted January 3 Share Posted January 3 @vskand A sincere thank you for your professionalism. It works great. Fantastic!!!! Thank you 😊 1 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