cyberstrider Posted January 4, 2009 Share Posted January 4, 2009 Hi We are setting up some accounts in whmcs and cpanel which have a definite expiry date. Now so far we have been doing these manually after 'ordering' the package and then processing a cancellation at the end of the billing period (with the next due date being set manually too) Is there any way at all to set a specific expiry date during the order process? One where the account actually expires/cancels/terminates and no invoice is raised to continue the account past this date on the specific account? Regards Denesh 0 Quote Link to comment Share on other sites More sharing options...
Matt Wade Posted January 4, 2009 Share Posted January 4, 2009 Nothing built into the system that I can think of. Here's a suggestion on how to do it though. Set up the product to be a one time billing. Make one of the custom fields a expiry date. Then, in the actionhook "actionhook_ShoppingCartCheckout", see if one of the product ids that should function this way is being ordered. If it is, set the custom field to the proper expiry date. Then, you'd need to run a daily cron job to do a little sql and api command to cancel the accounts if the date matches. 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.