ExsysHost Posted October 4, 2010 Share Posted October 4, 2010 (edited) 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 October 4, 2010 by ExsysHost 0 Quote Link to comment Share on other sites More sharing options...
oscarenzo Posted October 4, 2010 Share Posted October 4, 2010 one question, this module when the trial period has been finished, this module suspend or terminate the account? thank you. 0 Quote Link to comment Share on other sites More sharing options...
oscarenzo Posted October 4, 2010 Share Posted October 4, 2010 sorry, i can see your post, not terminate, only request to cancel the account, really? 0 Quote Link to comment Share on other sites More sharing options...
hiddenko Posted October 4, 2010 Share Posted October 4, 2010 (edited) 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 October 4, 2010 by hiddenko 0 Quote Link to comment Share on other sites More sharing options...
oscarenzo Posted October 4, 2010 Share Posted October 4, 2010 hello, for what is this code? hiddenko? thank you. 0 Quote Link to comment Share on other sites More sharing options...
ExsysHost Posted October 4, 2010 Author Share Posted October 4, 2010 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 0 Quote Link to comment Share on other sites More sharing options...
ExsysHost Posted October 4, 2010 Author Share Posted October 4, 2010 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 0 Quote Link to comment Share on other sites More sharing options...
hiddenko Posted October 4, 2010 Share Posted October 4, 2010 (edited) 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 October 4, 2010 by hiddenko 0 Quote Link to comment Share on other sites More sharing options...
oscarenzo Posted October 4, 2010 Share Posted October 4, 2010 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. 0 Quote Link to comment Share on other sites More sharing options...
ExsysHost Posted October 4, 2010 Author Share Posted October 4, 2010 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. 0 Quote Link to comment Share on other sites More sharing options...
neobug103 Posted October 11, 2010 Share Posted October 11, 2010 I need that terminated module reverted to automatically terminate the free trial accounts. It is a huge hassle to go through free trial accounts especially when you get 5 a day so please revert it back to automatically delete the accounts 0 Quote Link to comment Share on other sites More sharing options...
ExsysHost Posted October 11, 2010 Author Share Posted October 11, 2010 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 0 Quote Link to comment Share on other sites More sharing options...
ExsysHost Posted October 11, 2010 Author Share Posted October 11, 2010 If it doesn't then you have your whmcs automation configured incorrectly 0 Quote Link to comment Share on other sites More sharing options...
neobug103 Posted October 11, 2010 Share Posted October 11, 2010 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. 0 Quote Link to comment Share on other sites More sharing options...
ExsysHost Posted October 12, 2010 Author Share Posted October 12, 2010 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. 0 Quote Link to comment Share on other sites More sharing options...
ExsysHost Posted October 12, 2010 Author Share Posted October 12, 2010 From the very first post in this thread: 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 0 Quote Link to comment Share on other sites More sharing options...
Kevin K Posted November 3, 2010 Share Posted November 3, 2010 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! 0 Quote Link to comment Share on other sites More sharing options...
daviddwillson Posted November 11, 2010 Share Posted November 11, 2010 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 0 Quote Link to comment Share on other sites More sharing options...
BAJI26 Posted November 11, 2010 Share Posted November 11, 2010 Can you share your warning, cancellation and termination notices?! 0 Quote Link to comment Share on other sites More sharing options...
Anders Posted January 3, 2011 Share Posted January 3, 2011 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? 0 Quote Link to comment Share on other sites More sharing options...
Sophia Posted January 8, 2011 Share Posted January 8, 2011 Awesome mod Is it possible to change the numbers of reminder mails to just one notice instead of 3? I offer a one week trial plan and 3 warnings is a bit much... 1 would do. The rest of the mod is perfect, thanks! 0 Quote Link to comment Share on other sites More sharing options...
Sophia Posted January 8, 2011 Share Posted January 8, 2011 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 0 Quote Link to comment Share on other sites More sharing options...
Anders Posted January 10, 2011 Share Posted January 10, 2011 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 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 :-( 0 Quote Link to comment Share on other sites More sharing options...
Sophia Posted January 10, 2011 Share Posted January 10, 2011 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 0 Quote Link to comment Share on other sites More sharing options...
Anders Posted January 11, 2011 Share Posted January 11, 2011 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 :-( 0 Quote Link to comment Share on other sites More sharing options...
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.