Jump to content

[Free module] Extend the web services and add hooks


Kogkalidis

Recommended Posts

https://github.com/tivuno/tvws

Good evening, folks!

We have developed a tiny module which extends the native web services by adding the hooks functionality during a record add/update.

It obeys the native naming conditions: https://devdocs.prestashop-project.org/8/modules/concepts/hooks/list-of-hooks/actionobjectclassnameaddafter/

Example
You create an order on a localhost project and then you push to the online one (which serves as the master on the cluster) by executing ws. The order gets created BUT there is no further action (email delivery, data manipulation, files creation, you name it)

As an outcome, we now have the following hooks on the webservices as well:
AddBefore
AddAfter
UpdateBefore
UpdateAfter

Any kind of feedback is more than welcome!

Cheers

Edited by Kogkalidis (see edit history)
Link to comment
Share on other sites

  • Kogkalidis changed the title to [Free module] Extend the web services and add hooks

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...