I apologize in advance if this is called out in the documentation and I missed it, but I need to have the ability to send an email before a recurring payment is fired. For example: Send email reminder X days before next billing period.

Is this possible currently in uc_recurring or can a custom conditional action currently be created to do this or is this new functionality that will require code changes?

Thanks.

Comments

univate’s picture

Category: support » feature

No there is no support for this at the moment.

The best way to support this type of feature is probably via conditional actions. But Conditional action has no way currently to trigger events based on time, I think the first step is creating a generic trigger that can be triggered based on the time for or till another event in ubercart and you will be able to compare dates to trigger any actions you like.

elliotttf’s picture

Assigned: Unassigned » elliotttf

Thanks, I'll add this to my queue and will attach a patch when I've got a solution (unless someone else wants to jump on this).

pixelsweatshop’s picture

sub

EvanDonovan’s picture

Btw, a generic time-based trigger would probably best live in its own module, and would be a hook_cron() implementation that would check the current time.

I think that it wouldn't be necessary to use a generic trigger though, since this could have similar code to the notification for expiring credit cards which I attach in #629352: Credit card expiry reminder.

elliotttf’s picture

Assigned: elliotttf » Unassigned

Not sure when I'll get a chance to look at this agian, it's fallen out of focus with the company that was paying me to work on it. Unassigning from myself.

scarr’s picture

I'd love to see if we can resurrect this. I may be able to get someone on my team to take a look at it, but if there is anyone here who could point us in the right direction or who can finish this much quicker than us, it would be great functionality. It is necessary for a project we are working on that we send a renewal notification prior to expiration, and for that date to be flexible (in other words, we may want 1 week for monthly subscriptions, and 1 month for yearly).

Thanks!

EvanDonovan’s picture

I will possibly need this in the next month as well, but am not going to start working on it until I am certain of that. If you want to take it on first, that would be great. I would recommend a Conditional Actions (i.e., generalized) approach now, since that is what I would need if I were to need it. (The client wants to be able to configure the emails in a UI, and control the timeframe in which they are sent out.)

Majdi’s picture

hmmm
I think this can be done using rules module, I will check that and get back soon because I need this feature in one of the sites I'm working on

halloffame’s picture

Update?

jsibley’s picture

Issue summary: View changes

Has anyone made any progress with this? Thanks