Jump to content
  • 0

Add event on package create


Tikweb

Question

5 answers to this question

Recommended Posts

  • 0
10 hours ago, 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

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.

Link to comment
Share on other sites

  • 0
10 hours ago, Tikweb said:

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

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 .

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...