Tikweb Posted March 3, 2017 Report Share Posted March 3, 2017 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 Quote Link to comment Share on other sites More sharing options...
0 Blesta Addons Posted March 3, 2017 Report Share Posted March 3, 2017 no events for package actions . Quote Link to comment Share on other sites More sharing options...
0 Paul Posted March 3, 2017 Report Share Posted March 3, 2017 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. Quote Link to comment Share on other sites More sharing options...
0 Blesta Addons Posted March 4, 2017 Report Share Posted March 4, 2017 just curios about the purpose for this ? Quote Link to comment Share on other sites More sharing options...
0 Tikweb Posted March 6, 2017 Author Report Share Posted March 6, 2017 On 3/4/2017 at 9:15 PM, Blesta Addons said: just curios about the purpose for this ? I want to send a request to our other system trough API when a package has been successfully created. Quote Link to comment Share on other sites More sharing options...
0 Blesta Addons Posted March 6, 2017 Report Share Posted March 6, 2017 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 . Tikweb 1 Quote Link to comment Share on other sites More sharing options...
Question
Tikweb
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
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.