akuei Posted February 25, 2017 Share Posted February 25, 2017 (edited) Hello everybody, With 1.6, I bought a paid module, simply speaking, it will do something after create a customer. it works fine when register in front end or create customer in back-end(admin). But when I use web api to create a customer, it only create customer successfully, but paid module isn't called. I trace the code and guess the override function is not working, is there anything should I do or something missed? Thanks! Edited February 26, 2017 by akuei (see edit history) Link to comment Share on other sites More sharing options...
rocky Posted February 26, 2017 Share Posted February 26, 2017 Which hook is the module using to do something after creating a customer? Is it using actionCustomerAccountAdd or actionObjectCustomerAddAfter? I'm going to guess it's using actionCustomerAccountAdd and that hook isn't being called by the webservice. You can try rewriting the module to use the actionObjectCustomerAddAfter hook. That should work if the webservice creates a Customer object and then calls the add() function. It won't if the webservice is directly adding customers to the database using SQL queries instead of objects though. 1 Link to comment Share on other sites More sharing options...
akuei Posted February 28, 2017 Author Share Posted February 28, 2017 Hello Rocky, Your guess is right, it uses actionCustomerAccountAdd. After using actionObjectCustomerAddAfter, the web service api action could work correctly. Thank you! 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