Jump to content

Add A Service To Customer


AllToolKits.com

Recommended Posts

http://docs.blesta.com/display/dev/Plugin+Cron+Tasks

 

I suppose, if you:

- your custom cron task is aded to the blesta cron system

 

- your module create a key at service_fields table, like "my-custom-task-setup", being empty value at the start,

 

- your cron function check any active service having above value empty and will run all custom task and update above value to "1" when it's done.

 

 

note the "1" value could also be a timestamps or anything you want

Link to comment
Share on other sites

Is there any module function that will be called when adding a service to a customer?

addService function will be called when we create a service, right?

Any way to call some function when we add an existing  service to a customer?

 

If the service is added with "Use Module" checked, the module's ::addService method is called. If the service already exists for the client, and you are updating it, then ::editService is called.

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
Reply to this topic...

×   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...