Jump to content

Change when affiliate emails go out


Ragonz

Recommended Posts

21 minutes ago, Ragonz said:

I'm working on the affiliate system today and want to find out if its possible to change the date when affiliate emails go out?

I suspect you'd have to use the cron flags to prevent (skip) the monthly email going out, and force it to go out when you want it to.

https://docs.whmcs.com/Crons

Quote

Task Options for skip & do

When performing a skip or do command, you can itemize which tasks are excluded or included respectively. Below is a table that itemizes these task options, as well as their normal frequency.

The "--force" option does exactly that...it will force execute any application tasks (respective of the command [all, skip, do]) regardless if the task is suppose to run once a day, a month, or at a time other than now.

so in effect, you might end up with 2 crons... the first default cron modified to skip sending the monthly reports and a second cron, running on a specific day/time of the month you specify, solely to send the reports emails.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated