Jump to content

"Complete" Free Trials Mod :)


ExsysHost

Recommended Posts

This is not the Official Free Trials Mod

 

This is the Complete Free Trials Mod: http://www.whmcs.com/members/communityaddons.php?action=viewmod&id=96

 

This is a fork of the official free trials mod, it has been enhanced to include 3 warning emails, 4th email with automatic suspension and 5th email with automatic cancellation request.

 

You can duplicate the config lines, for multiple trial products, you can have different emails for different products, you can have different trial periods for different products.

 

What this mod does:

 

1) sends warning email one

2) sends warning email two

3) sends warning email three

4) suspends account and sends email "your free trial has ended"

5) initiates a cancellation request and sends a final email

 

You want the system to initiate a cancellation request not a "terminate"

Because cancellation request removes them from the server and marks the package as cancelled

 

The only time you ever want to mark a package as terminated is when a customer has not paid their balance for some time... meaning they are not eligible to become a customer again until they pay their balance.. where a customer who has cancelled can always sign up again at a later date

 

The ability to modify the config portion of the PHP script is required to use this script.

 

The latest version can always be downloaded from:

http://www.swiftlayer.com/clients/dl.php?type=d&id=10

 

 

Check out the wiki for instructions:

http://wiki.whmcs.com/Contribution:Complete_Free_Trials_Mod

Edited by ExsysHost
Link to comment
Share on other sites

  • Replies 68
  • Created
  • Last Reply

Top Posters In This Topic

Hello.

 

$query = "SELECT tblhosting.id,tblhosti...... WHERE packageid=".(int)$pid."  AND [color="Red"]regdate<'$warn1'[/color] AND (domainstatus='Active' OR domainstatus='Suspended')";

maybe you mean regdate<'$warndays1' ?

Edited by hiddenko
Link to comment
Share on other sites

Guys really?

 

This product does this:

 

1) sends warning email one

2) sends warning email two

3) sends warning email three

4) suspends account and sends email "your free trial has ended"

5) initiates a cancellation request and sends a final email

 

You want the system to initiate a cancellation request not a "terminate"

Because cancellation request removes them from the server and marks the package as cancelled

 

The only time you ever want to mark a package as terminated is when a customer has not paid their balance for some time... meaning they are not eligible to become a customer again until they pay their balance.. where a customer who has cancelled can always sign up again at a later date

Link to comment
Share on other sites

Hello.

 

$query = "SELECT tblhosting.id,tblhosti...... WHERE packageid=".(int)$pid."  AND [color="Red"]regdate<'$warn1'[/color] AND (domainstatus='Active' OR domainstatus='Suspended')";

maybe you mean regdate<'$warndays1' ?

 

This will break the system if you do this please do not post code when you don't understand how it works

 

The code as is works 100% on our site and many others

Link to comment
Share on other sites

Okay, no problem.

 

But could you check what you get in $warn1 variable in query, please ?

i got text: "First Notice Trial Ending"

that is why i asked.

 

SwiftLayer, thank for code.

And again, sorry for disturb.

Edited by hiddenko
Link to comment
Share on other sites

What don't you understand about it does delete accounts... when you cancel a package it is deleted from the server. You are not supposed to mark a package as terminated you are supposed to mark it as cancelled. Terminated is a reserved word for accounts that have outstanding invoices..

 

I repeat to everyone when you cancel a package it is deleted from the server

Link to comment
Share on other sites

Wow, thanks for the info there SwiftLayer. I wasn't asking for clarification between "terminated" and "canceled" unfortunately.

 

I was asking for assistance in reverting the free trial script from adding overdue trial accounts from from the cancellation request queue to simply "terminate" or "cancel" them automatically without human intervention.

Link to comment
Share on other sites

I guess I must not have been clear enough for you in the many posts:

 

This mod does Automatically cancel the package and whmcs does automatically remove the item from the server.

 

I was explaining in detail how the process worked because you obviously did not get the point that it does automatically do it with no manual intervention.

Link to comment
Share on other sites

  • 4 weeks later...

Is it possible to have it send emails and take action such as suspending only on the days you set. It seems to be running these commands once it hits this day that is set for each object and then keeps running it each time the cron runs until it hits the next command.

 

For example if I have the first notice set for 5 days and then the second notice set for 8 days, during that 6th and 7th day it sends that first warning again when the cron runs. The same goes for the suspend account, if I have it set for 15 days and then to file cancellation after 20, it will attempt to still suspend on day 16, 17, 18, and 19.

 

Is this just me or how the script is running? If this could be fixed the script would be perfect!

Link to comment
Share on other sites

  • 2 weeks later...
Hello, SwiftLayer

 

thank you by you responses, i have a query.

 

your code when finished a trial period, send to admin any report? with the user that finished your trial period?

 

thank you, regards.

 

Yes you can see under the "Cancellation Requests" in WHMCS. We also set the emails to carbon copy to our sales team so our sales team has the chance to interact with the customers before their trial ends.

__________________

watch movies online

Link to comment
Share on other sites

  • 1 month later...
i must be stupid i cant understand how to install it. i have uploaded the file to includes/hooks folder and then what do i do?

 

where can i find it in my admin?

 

You just need to edit the file itself, don't upload it the way it is or you may find half your accounts terminated tomorrow :D

Link to comment
Share on other sites

You just need to edit the file itself, don't upload it the way it is or you may find half your accounts terminated tomorrow :D

 

sophie thx for your time can you or anyone please explain just how i setup a trial account for 30 days.

 

 

i make hosting product right? and then what?

 

i am feel so stupid :-(

Link to comment
Share on other sites

Open the file end_free_trials_hook.php and look at lines 28 to 33. I think you'll find your answer there. :)

 

I'd still like an answer to my question please... can I just delete the lines that mention the second and third reminder without breaking stuff? Thanks :D

Link to comment
Share on other sites

thx again sophie sorry that i cant help u with your thing.

 

i had a look at line 28 to 33 and i have setup this "pid" => "5", // product id

 

i made a new product that is free and have pid 5 is this right? or should i use an existing product that is not free?

and the warning mails how are they setuped?

 

is it only me that not understand this :-(

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