Jump to content

Edit History

Kogkalidis

Kogkalidis

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

Kogkalidis

Kogkalidis

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

×
×
  • Create New...