Safwen Posted September 13, 2013 Share Posted September 13, 2013 hi, i would like to do some sql querys after i check that the insertion of a new customer to dattabase has been made. i know that it should be done on AuthController.php but there is 2 functions processSubmitAccount() and processSubmitCreate() i dont' know where should i exactly put my query. how to check that the insertion has been made ? can anyone help me Link to comment Share on other sites More sharing options...
vekia Posted September 13, 2013 Share Posted September 13, 2013 controllers/front/AuthController.php right after this code: Hook::exec('actionBeforeSubmitAccount'); (it will execute your query before account creation) or after this Hook::exec('actionCustomerAccountAdd', array('_POST' => $_POST,'newCustomer' => $customer)); if you want to execure query right after account creation. you can also create module and use these hooks (proper method) 1 Link to comment Share on other sites More sharing options...
Safwen Posted September 13, 2013 Author Share Posted September 13, 2013 Thanks to you Vekia i solved it .Best regards Link to comment Share on other sites More sharing options...
vekia Posted September 13, 2013 Share Posted September 13, 2013 hello thank you for confirmation that you solved it now i can go ahead and mark this topic as solved too best regards 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