Jump to content

[SOLVED] How to Add SQL query after new customer insertion to database


Recommended Posts



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


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)

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...