Get Paid to Participate - up to $1 per post!     Twitter     Facebook     Google+
Hosting Discussion
 

forgot password?



Reply


Old
  Post #1 (permalink)   10-10-2011, 05:38 AM
HD Newbie
 
Join Date: Jul 2011
Location: Netherlands
Posts: 38

Status: RobinF is offline
Due to an upcoming new law in the Netherlands it will be required to inform a customer when you are about to renew a subscription. Right now WHMCS does not support notifying customers automatically when their package is about to expire so I'm looking to create my own event.

What I want to do is send an automated e-mail to any client with a package that is set to be renewed in less than 30 days. I already made the e-mail template in WHMCS, but I have no idea how to make it send it out to the relevant clients at the right moment.

WHMCS support told me to use action hooks and the API to accomplish this but I didn't get much info aside from that.

Anyone have a clue on how I would do this?
 
 


Old
  Post #2 (permalink)   10-10-2011, 08:06 AM
HD Master
 
othellotech's Avatar
 
Join Date: Jul 2003
Location: London, UK
Posts: 429
Send a message via Skype™ to othellotech

Status: othellotech is offline
Quote:
Originally Posted by RobinF View Post
Due to an upcoming new law in the Netherlands it will be required to inform a customer when you are about to renew a subscription. Right now WHMCS does not support notifying customers automatically when their package is about to expire
WHMCS automatically invoices clients in-advance of their renewal date, which is before the subscription (money sent by PP etc) takes place - so you're already covered - just set the appropriate number of days in your config
__________________
Rob Golding Astutium Ltd (AS29527) ICANN Accredited Registrar, Nominet Member, eNom ETP
UK VPS & Private Cloud Servers | UK Linux + Windows Shared Hosting | London Colo |
Domain Registration + Domain Resellers (WHMCS compatible)
 
 


Old
  Post #3 (permalink)   10-10-2011, 09:51 AM
HD Newbie
 
Join Date: Jul 2011
Location: Netherlands
Posts: 38

Status: RobinF is offline
Wish it were that easy. Not paying an invoice is not a common way of allowing a service to be canceled. In the Netherlands we're not allowed to just cancel an invoice and delete it for example. We'd have to send a credit invoice to cancel the original invoice.

Aside from that, by generating the invoice I'm already renewing the customers service (for the law), paid or not.

So it's important that the notice goes out before any kind of invoice is generated to begin with. I know, it's stupid. But I don't make the laws.
 
 
 


Old
  Post #4 (permalink)   10-10-2011, 09:42 PM
HD Master
 
othellotech's Avatar
 
Join Date: Jul 2003
Location: London, UK
Posts: 429
Send a message via Skype™ to othellotech

Status: othellotech is offline
So are you expecting a positive action to be taken by the end-user _before_ generation of the invoice ?
__________________
Rob Golding Astutium Ltd (AS29527) ICANN Accredited Registrar, Nominet Member, eNom ETP
UK VPS & Private Cloud Servers | UK Linux + Windows Shared Hosting | London Colo |
Domain Registration + Domain Resellers (WHMCS compatible)
 
 
 


Old
  Post #5 (permalink)   10-11-2011, 12:12 AM
HD Guru
 
HostLeet's Avatar
 
Join Date: May 2009
Location: Florida, USA
Posts: 874

Status: HostLeet is offline
Have a look at:

http://docs.whmcs.com/API:Internal_API

and

http://docs.whmcs.com/Action_Hooks

Maybe this will point you in the right direction.
__________________
HOSTLEET.COM, LLC - Elite Website Hosting Since 2008!
Fast Reliable Affordable Secure Friendly & Courteous
RISK-FREE Money Back Guarantee PCI-Compliant Checkout
 
 
 


Old
  Post #6 (permalink)   10-14-2011, 01:51 AM
HD Addict
 
Join Date: Oct 2011
Posts: 164

Status: web3k is offline
There are some action hooks specifically for invoicing, which as others have pointed out, happen around the time an account is due to be renewed (or in your case, expired).

I'd also have a look in the WHMCS forums, as if this is law and regulation, it sounds like many other hosts in the Netherlands will be in the sam situation - someone in the community may have already coded a module up, or have provided the code for a solution.

Alternatively, if you're decent at PHP you could write a quick cron job which checks for upcoming expiry dates via mysql and sends an email using a basic mail function. Not as easy as a module I know, but an option nonetheless.
__________________
Web3k - Australian Web Hosting and Domain Names
 
 


Old
  Post #7 (permalink)   10-14-2011, 01:49 PM
HD Newbie
 
Join Date: Jul 2011
Location: Netherlands
Posts: 38

Status: RobinF is offline
Thanks for all the replies, everyone. Luckily it turns out there are a few alternatives to dealing with this than just this complicated solution.
 
 
 
Reply

Thread Tools

New Post New Post   Old Post Old Post
Posting Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Sponsored By: