G2soporte Posted April 24, 2013 Share Posted April 24, 2013 Does anyone know what hook is used when a customer updates his/her data? Link to comment Share on other sites More sharing options...
vekia Posted April 24, 2013 Share Posted April 24, 2013 Does anyone know what hook is used when a customer updates his/her data? unfortunately hook for this action doesnt exist, list of all available hooks you can get here: http://doc.prestasho...ont-officehooks Link to comment Share on other sites More sharing options...
G2soporte Posted April 24, 2013 Author Share Posted April 24, 2013 Is it possible to create hook with this action? When a user updates his/her profile? Any tutorial where I can start? Thanks. Link to comment Share on other sites More sharing options...
vekia Posted April 24, 2013 Share Posted April 24, 2013 create own hook (tutorial here: http://www.prestashop.com/forums/topic/2182[spam-filter]create-custom-and-new-hook-in-ps-15/ ), for example called actionIdentity, then go to the controllers / front / identityController.php and search for: public function postProcess(); you can add there: Hook::exec('actionIdentity'); Link to comment Share on other sites More sharing options...
G2soporte Posted April 24, 2013 Author Share Posted April 24, 2013 Thanks vekia, very useful. But I'm using PS 1.4.x in identityController.php cann't find the fuction postProcess(); Link to comment Share on other sites More sharing options...
G2soporte Posted April 24, 2013 Author Share Posted April 24, 2013 Can I insert the code here? if ($customer->update()) Link to comment Share on other sites More sharing options...
vekia Posted April 24, 2013 Share Posted April 24, 2013 I forgot to ask you about what version you use wait a sec, im going to check it in ps 1.4 Link to comment Share on other sites More sharing options...
vline Posted August 19, 2014 Share Posted August 19, 2014 (edited) So how does Prestashop update Customer information when they go to update their name, e-mail or password? I don't see the function in IdentityController.php in Prestashop version 1.6.0.9. Edited August 19, 2014 by vline (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted August 20, 2014 Share Posted August 20, 2014 you're asking about whole background process / or you're looking for tpl files ? customer name is updated with address class Link to comment Share on other sites More sharing options...
sjaakie3 Posted October 20, 2014 Share Posted October 20, 2014 you're asking about whole background process / or you're looking for tpl files ? customer name is updated with address class I am looking fot the same info I guess. I opened a topic, but I did not know then that events are called hooks in Prestashop. Vekia can you help me a little on my way? http://www.prestashop.com/forums/topic/371676-any-events-available-to-send-to-external-webservice/ Link to comment Share on other sites More sharing options...
Recommended Posts