Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/17/2020 in all areas

  1. vedova

    Redirection error

    Hi, try disabling mod_security, and check which rules has to be commented out, second try with the Comodo Rules. Don't use Varnish cache with Blesta, it will generates many errors, and sessions are not updated correctly too. I can suggest you to use Nginx+Apache+PHP-FPM combination.
    1 point
  2. I think it is not necessary to use events for what you are looking for, from the addService() function you can add a condition that if the configurable option exists, a support ticket is created. The addService() function is automatically executed by the cron task when the invoice related to the service has been paid in full. Here's a quick example, assuming that the configurable option for the extra service is named "migration_service": public function addService( $package, array $vars = null, $parent_package = null, $parent_service = null, $status = 'pending' ) { ... if (isset($vars['configoptions']['migration_service'])) { // Create support ticket Loader::loadModels($this, ['SupportManager.SupportManagerTickets']); $ticket = $this->SupportManagerTickets->add([ 'department_id' => 1, 'staff_id' => 1, 'client_id' => 1, 'summary' => 'Subject', 'priority' => 'critical', 'status' => 'open' ]); // Add reply if (!is_null($ticket)) { $this->SupportManagerTickets->addReply($ticket, [ 'client_id' => 1, 'contact_id' => 1, 'type' => 'reply', 'details' => 'Reply text' ]); } } ... }
    1 point
×
×
  • Create New...