7 replies [Last post]
strikedo's picture
Offline
Joined: 02/06/2008
Juice: 45
Was this information Helpful?

Hi all,

I have UC running on a production site that's about to go live. So far it's awesome!

I have a question about purchasing roles. I have a product which grants fuller access to the site's content. Purchasing membership gives you one year of access.

What happens when renewal time comes?

Today is 13Feb2008. A user purchases first-time membership. His role is upgraded for one year, set to expire on 13feb2009.

So... let's say the user logs on a week before expiry (so 6Feb2009) and sees that his membership is about to expire. He purchases another year of membership.

Here's my question: is his new expiry date 6Feb2010 (one year from the date of renewal) or 13Feb2010 (one year after his original expiry date)? Obviously it ought to be the latter.

Thanks in advance...

Shawn Conn's picture
Offline
Administrator
Joined: 08/07/2007
Juice: 916
Re: Roles - how does renewal work?

One year from original expiration.

-Shawn Conn: If the Name Don't Rhyme It Ain't Mine

dougzilla's picture
Offline
Joined: 08/18/2009
Juice: 6
Wow totally smart

I was just wondering the same thing myself.

lgb
lgb's picture
Offline
Joined: 05/29/2009
Juice: 23
Not for me

My experience with Ubercart has also been really great, and I'm so grateful for the fantastic work that the UC contributors have put into this.

However, I have actually been struggling for the last 2-3 days with this exact issue (role renewal period).

For me, renewal periods are beginning from the date/time of renewal, NOT from original expiration. I thought that it may be a bug that I would have to workaround, but I'm beginning to suspect it's a problem with my installation.

Does anyone have a guess about what might cause this? I'd appreciate any help I can get. I'm not sure what relevant information to provide to help troubleshoot the issue, though. I have tried disabling and re-enabling the UC Roles module.

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Not for me

It looks like some code got moved around in there, and the existing expiration wasn't loaded when it was needed. Easy enough to fix. Here's a patch.

AttachmentSize
u3204_role_expirations.patch 981 bytes
lgb
lgb's picture
Offline
Joined: 05/29/2009
Juice: 23
Re: Re: Not for me

Thanks a mil!!! Works great! You guys are awesome. Thanks for getting a fix to me so quickly. Smiling

nanduhc's picture
Offline
Joined: 08/24/2009
Juice: 2
Reg Renewal Process

Hi Guys,

I need to have a subsidized renewal product link to be sent to users whenever the original membership expires. But the problem is I cant assign relationship from renewal product to original membership product to change the expiration date of original membership product.

Could you please throw in some light.

Thanks a lot,
Nandu

sturtus's picture
Offline
Joined: 01/18/2011
Juice: 4
Is this in release

Was this patch added to release at any point or does it need to be applied for this function to work as described?