ryanschmidt wrote:How do you
Expiring roles and recurring fees for subscriptions (53 replies) Sat, 10/04/2008 - 01:50
- Current functionality (01/12/2010 - 02:05)
- I don't think so... (02/15/2010 - 21:42)
- Re: Expiring roles and recurring fees for subscriptions (02/18/2009 - 06:56)
- mike wrote:
uc_recurring (04/10/2009 - 20:33)
- Double edged sword? (04/15/2009 - 11:52)
- uc_subscription on 2.x (02/26/2009 - 15:47)
- mike wrote:
uc_recurring (04/10/2009 - 20:33)
- i think im jumping on the ubercart bandwagon (12/11/2008 - 20:54)
- wow I need to check this out (12/06/2008 - 12:20)
- Re: wow I need to check this out (12/09/2008 - 15:51)
- Re: Expiring roles and recurring fees for subscriptions (11/24/2008 - 14:17)
- Re: Re: Expiring roles and recurring fees for subscriptions (11/24/2008 - 14:42)
- ron_s and Ryan - Thanks for (11/24/2008 - 14:51)
- Re: Re: Expiring roles and recurring fees for subscriptions (11/24/2008 - 14:42)
- Autorenewal (10/09/2008 - 10:59)
- Re: Expiring roles and recurring fees for subscriptions (10/09/2008 - 10:39)
- Re: Re: Expiring roles and recurring fees for subscriptions (11/06/2008 - 16:09)
- Re: Re: Re: Expiring roles and recurring fees for subscriptions (11/08/2008 - 07:00)
- Subscriptions (11/09/2008 - 12:35)
- Re: Subscriptions (11/17/2008 - 16:43)
- Re: Re: Subscriptions (11/18/2008 - 03:03)
- Re: Re: Re: Subscriptions (11/19/2008 - 13:16)
- Re: Re: Re: Re: Subscriptions (11/19/2008 - 13:42)
- Re: Re: Re: Re: Re: Subscriptions (11/19/2008 - 21:54)
- Re: Re: Re: Re: Re: Re: Subscriptions (11/19/2008 - 22:07)
- Re: Re: Re: Re: Re: Re: Re: Subscriptions (11/20/2008 - 10:22)
- Re: Re: Re: Re: Re: Re: Re: Re: Subscriptions (11/20/2008 - 21:07)
- Re: Re: Re: Re: Re: Re: Re: Re: Re: Subscriptions (11/20/2008 - 23:28)
- Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Subscriptions (11/21/2008 - 08:01)
- Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Subscriptions (11/22/2008 - 15:39)
- Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Subscriptions (11/22/2008 - 17:01)
- Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Subscription (11/22/2008 - 18:06)
- Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Subscrip (11/23/2008 - 03:38)
- Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Subs (11/23/2008 - 08:40)
- Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: (11/24/2008 - 15:27)
- webmasterkai wrote:If you (11/24/2008 - 17:30)
- ron_s wrote:I couldn't agree (11/24/2008 - 18:12)
- Re: ron_s wrote:I couldn't agree (11/25/2008 - 11:36)
- ryanschmidt wrote:I would (11/24/2008 - 21:33)
- Re: webmasterkai wrote:If you (11/24/2008 - 18:03)
- ron_s wrote:I couldn't agree (11/24/2008 - 18:12)
- webmasterkai wrote:If you (11/24/2008 - 17:30)
- Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: (11/23/2008 - 22:20)
- ryanschmidt wrote:How do you (11/24/2008 - 14:04)
- Re: ryanschmidt wrote:How do you (02/07/2009 - 14:34)
- Re: Re: ryanschmidt wrote:How do you (02/17/2009 - 14:48)
- Ryan wrote:Hey Ron, sorry (03/12/2009 - 05:14)
- Re: Ryan wrote:Hey Ron, sorry (03/12/2009 - 06:23)
- Re: Re: Ryan wrote:Hey Ron, sorry (03/13/2009 - 01:39)
- instructions (03/25/2009 - 09:53)
- Re: Re: Ryan wrote:Hey Ron, sorry (03/13/2009 - 01:39)
- Re: Ryan wrote:Hey Ron, sorry (03/12/2009 - 06:23)
- Ryan wrote:Hey Ron, sorry (03/12/2009 - 05:14)
- Re: Re: ryanschmidt wrote:How do you (02/17/2009 - 14:48)
- Re: ryanschmidt wrote:How do you (02/07/2009 - 14:34)
- ryanschmidt wrote:How do you (11/24/2008 - 14:04)
- Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: (11/24/2008 - 15:27)
- Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Subs (11/23/2008 - 08:40)
- Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Subscrip (11/23/2008 - 03:38)
- Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Subscription (11/22/2008 - 18:06)
- Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Subscriptions (11/22/2008 - 17:01)
- Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Subscriptions (11/21/2008 - 22:59)
- Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Subscriptions (11/22/2008 - 15:39)
- Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Subscriptions (11/21/2008 - 08:01)
- Re: Re: Re: Re: Re: Re: Re: Re: Re: Subscriptions (11/20/2008 - 23:28)
- Re: Re: Re: Re: Re: Re: Re: Re: Subscriptions (11/20/2008 - 21:07)
- Re: Re: Re: Re: Re: Re: Re: Subscriptions (11/20/2008 - 10:22)
- Re: Re: Re: Re: Re: Re: Subscriptions (11/19/2008 - 22:07)
- Re: Re: Re: Re: Re: Subscriptions (11/19/2008 - 21:54)
- Re: Re: Re: Re: Subscriptions (11/19/2008 - 13:42)
- Re: Re: Re: Subscriptions (11/19/2008 - 13:16)
- Re: Re: Subscriptions (11/18/2008 - 03:03)
- Re: Subscriptions (11/17/2008 - 16:43)
- Subscriptions (11/09/2008 - 12:35)
- Re: Re: Re: Expiring roles and recurring fees for subscriptions (11/08/2008 - 07:00)
- Re: Re: Expiring roles and recurring fees for subscriptions (11/06/2008 - 16:09)
- Re: Expiring roles and recurring fees for subscriptions (10/06/2008 - 12:47)
- Ryan wrote:I'll look into (10/09/2008 - 10:35)
- Re: Re: Expiring roles and recurring fees for subscriptions (10/07/2008 - 07:23)
- Re: Re: Re: Expiring roles and recurring fees for subscriptions (10/07/2008 - 08:14)
- Ryan -
I'm new to the (10/08/2008 - 10:34)
- benthroop wrote:I'm new to (10/09/2008 - 08:25)
- Ryan -
I'm new to the (10/08/2008 - 10:34)
- Re: Re: Re: Expiring roles and recurring fees for subscriptions (10/07/2008 - 08:14)

How do you setup reoccurring subscriptions in Ubercart that grant access roles on purchase and take them away on subscription expiration?
I think ron_s is getting at this... the gist of it is, you can't with core alone. This is an unfortunate side effect of the roles module being developed 6 months before the recurring module was actually put in core. So what we have are two systems that should work together but don't. I'll respond more to ron_s's posts directly here in a bit, but basically what you can do is either accommodate this in a custom recurring fee handler or work through an existing one. For example, I integrated Auth.Net's ARB service in the core Auth.Net module. I invoke a hook whenever an ARB payment is received, so a custom module could implement that hook and update a user's roles accordingly.
However, as is apparent in this thread, core really really needs to have a way to associate a role promotion with a recurring fee. It also needs to better understand what to do when a payment fails... when do you decide a payment is late and should reactivate a previous role w/ an extension or a payment should be considered as repurchasing an expired role? Perhaps ron_s's idea of creating a new order when a recurring payment comes in could solve this.
@ron_s - regarding your bug from uc_roles_order(), I fixed a similar bug in the files module but didn't think to check this module (they were written by the same developer). I'm going to go do that right now and will come back to this thread. I'm running behind on a project and need to devote a few hours to it atm.
fwiw, associating roles to recurring fees is something that is on my radar and will be possible in the 2.0 release.