Jump to content

Question

5 answers to this question

Recommended Posts

  • 0
Posted
  On 3/3/2017 at 12:04 PM, Tikweb said:

Hi,

Is it possible to add event when package crated successfully or how can i add a custom event on package create?

Blesta doesn't provide any event for package create https://docs.blesta.com/display/dev/Event+Handlers 

Thank You

Expand  

You can make a request for an event for package create at https://requests.blesta.com if there isn't one already. In the meantime, you could add the event manually to the source if you know how to do that.

  • 0
Posted
  On 3/6/2017 at 5:15 AM, Tikweb said:

I want to send a request to our other system trough API when a package has been successfully created.

Expand  

from package is impossible without hacking the core files . what i suggest is :

1 - create a custom plugin that has event in Appcontroller.preAction .

2 - listen from the event to all POST request .

3 - analyse the port to see if it include package fields (prices, package name, welcome email ect...) , if yes then call your API fucntion to send what you want.

this is the only working solutions without hacking the core files .

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...