UC Roles: Expiration on a fixed date

Project: 
Ubercart
Category: 
feature request
Version: 
Ubercart 1.x-dev
Priority: 
normal
Assigned: 
Unassigned
Status: 
active

Not many but some people have asked for this feature on the forums.

Daniorama wrote:
Hello, would it be posible to add an option for absolute expiration dates and not only relative ones to the date of buy/payment in Drupal6? The reason to that are the events, so indepently when the customer have buyed the ticket, the role (or any other feature) will expire a few days after the event is finished.

I know I can change the expirations manually but it would be nice if an absolute date could be directly assigned (in fact the code should be easier as the relative expiration)

Thank you very much!


http://www.ubercart.org/forum/ideas_and_suggestions/6770/setting_expirat...

David Larsson wrote:
Hi!

I'm working on a site were it's possible to pay the annual membership fee with ubercart. It works great, and thanks for the support i got earlier.

Now my client asked a question, "We want our members to pay their fees at newyears. If a new member joins in May, he pays his membership and it is valid until the end of the year."

So I wonder if there is a simple way to set a fixed date for expiration for a role assignment, instead of leting it be valid for certain time.


http://www.ubercart.org/forum/ideas_and_suggestions/6540/fixed_date_role...

I don't think this should be too hard to achieve. Even though I'm not a programmer I'm willing to help.

Re: UC Roles: Expiration on a fixed date

I'll run it by cha0s and see how difficult it would be to work in. He's been rewriting the roles module for D6, and this would be the time to see that feature added.

Seconded

Our client would like expirations to always be extended to the end of the month. I.e., a "3-month" subscription purchased on 11/4 would expire not on 2/4 but 2/28 (in a non-leap-year, of course). I think the best approach for supporting whatever formulae might be needed for expirations would be an expiration modification hook.

We're looking for this on D6/Ubercart 2.x.

Thanks.

Re: Seconded

Aye, that's probably the way to go... the only alternative would be an endless list of tokens.

tokens?? It would be enough

tokens??

It would be enough to be able to set the role to expire with year, month and day. Like this

year: 2009 month: 2 day: 10

Another vote

Just want to add my vote for this feature as well. In our case (a ski association) membership is annual and seasonal. Typically, memberships need to expire in June of each year. Ideally, we'd be able to enter a specific expiration date to handle this. We're working with D6 and UC 2.x

Dave