Prestashop how to know when a new user makes register in the store -


i using prestashop 1.6. wanted know how can know when user makes register in store? there kind of hook or that? , suggestions appreciable. thanks

there's hook , it's called right after customer has been succesfully registered website. hook name actioncustomeraccountadd, can call in custom module function hookactioncustomeraccountadd($params){ ... }, , registering $this->registerhook('actioncustomeraccountadd')

the code of hook found inside authcontroller :

    hook::exec('actioncustomeraccountadd', array(                         '_post' => $_post,                         'newcustomer' => $customer                     )); 

as can see have access full $_post of registration form + new customer object created it. if need example on how use hook can see code of blocknewsletter module, uses actioncustomeraccountadd hook, right need it.


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -