UC Roles: Expiration on a fixed date

Project:Ubercart Contributions
Component:Code
Category:
Priority:normal
Assigned:Unassigned
Status:active
Description
Project: 
Ubercart

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.

Version: 
Ubercart 1.x-dev
Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15422
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.

mikeryan's picture
Offline
Joined: 09/12/2008
Juice: 27
Seconded
Assigned to:Ryan» mikeryan

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.

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15422
Re: Seconded
Assigned to:mikeryan» Ryan

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

David Larsson's picture
Offline
Joined: 09/08/2008
Juice: 17
tokens?? It would be enough
Assigned to:Ryan» David Larsson

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

kazan's picture
Offline
Joined: 11/24/2008
Juice: 17
Another vote
Assigned to:David Larsson» kazan

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