Page 1 of 1

How are expired subscriptions handled?

Posted: Wed May 06, 2015 3:08 am
by mbartens
I have the site set up so you can purchase a subscription product and that product is actually a membership to the site which will allow you to get certain discounts and special products.
That part is working great.

What happens when a subscription expires? I did a test on the ac_Subscriptions table where I changed the expiration date to yesterday... I believe the row was then deleted. Am I losing it?
Where is the code that does that? Thanks

Re: How are expired subscriptions handled?

Posted: Wed May 06, 2015 3:45 am
by Naveed
The subscription and recurring order management code is in CommerceBuilder.Services.Scheduler.RecurringOrdersService.cs class.

Re: How are expired subscriptions handled?

Posted: Wed May 06, 2015 8:05 am
by mbartens
Thank you. So I see that it does delete expired subscriptions. Is there a setting to disable that?

Re: How are expired subscriptions handled?

Posted: Wed May 06, 2015 11:11 am
by Katie
No, there is no setting to disable this, but it certainly seems like there should be something under the Store > Maintenance page. I'll suggest that this gets added.

Re: How are expired subscriptions handled?

Posted: Thu May 07, 2015 2:26 am
by mbartens
So I definitely need to disable the deletion of expired subscriptions. I see this -->ProcessExpiredSubscriptions
but I don't see where it is deleted. Where is that code? Thank you.


ETA - I found it. CommerceBuilder.Services MaintenanceWorker MaintainSubscriptions