Jump to content

Setting up accounts to not renew on expiry


cyberstrider

Recommended Posts

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

Link to comment
Share on other sites

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.

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