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