D0cstrange Posted February 17, 2012 Share Posted February 17, 2012 Hello people, i'm pretty new here, trying to get some stuff working on my prestashop, so, here is the thing I need to be able to export all users data on registration and send the to my newsletter management system. I started a plugin, i can make it appear on my admin interface, but well, a part displaying an opt-in block, i can't get the thing to automatically send the customer details to the site, i mean, i don't see where to hook my plug, i tried looking in the doc zone, but can't get enough information... could please, give me an advice or two, maybe a link or two to look for a solution... Link to comment Share on other sites More sharing options...
D0cstrange Posted February 19, 2012 Author Share Posted February 19, 2012 Managed to get a little further through reading, but still stuck public function hookcreateAccount($param) { $result = Db::getInstance()->getRow(' SELECT `` FROM `'._DB_PREFIX_.'customer` WHERE `id_customer` = '.(int)($params['cookie']->id_customer)); $to = "[email protected]"; $subject = "Hi!"; $body = $result; if (mail($to, $subject, $body)) { echo("<p>Message successfully sent!</p>"); } else { echo("<p>Message delivery failed...</p>"); } } can't get my customer details to be sent to my mail, and this is just prototyping, not the final end, just to see if it is working or not, later it will be passed to another platform 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