Jump to content

any events available to send to external webservice


sjaakie3

Recommended Posts

I want my Gitlab installation to recieve the details when a new customer is created at my Prestashop site. The 'recieving' end is working and tested. But the PS site not.

 

How do I bind to an event as 'newcustomer' so that I can call the Gitlab service?

The documentation did not help me at all, and a list of events is not to be found either.

Link to comment
Share on other sites

The "events" in PrestaShop are called hooks:

http://doc.prestashop.com/display/PS15/Hooks+in+PrestaShop+1.5

 

The hook you need is called "actionCustomerAccountAdd" (PS 1.5 & 1.6) or "createAccount" (PS 1.4)

When you implement it note that you will have 2 params:
_POST - with all the post variables during creation

newCustomer - with the object of the customer (instance of class Customer)
 

Link to comment
Share on other sites

The "events" in PrestaShop are called hooks:

 

 

Wow, thank you !

 

This helps a lot, do you have by any chance a list of all the 'hooks' and parameters for Prestashop 1.6?

 

Found this too: http://www.prestashop.com/forums/topic/242162-customer-info-update-hook/ but no real answer there either for 1.6

Edited by sjaakie3 (see edit history)
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...