Subscriptions - automate email

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
svetalex
Ensign (ENS)
Ensign (ENS)
Posts: 15
Joined: Fri Feb 22, 2008 1:37 pm

Subscriptions - automate email

Post by svetalex » Mon Jul 06, 2009 1:37 pm

Hi,

I have a questions about subscriptions.
How we define the email that notifies a customer that his subscription is about to renew?

We are using AC 7.0
I would appreciate any help. I have searched through the forums and saw very little information regarding subscriptions.
may be this options exists in latest AC upgrades ?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Subscriptions - automate email

Post by mazhar » Tue Jul 07, 2009 7:22 am

This functionality is currently not available in AbleCommerce. You need to do some custom work. Here is one solution first create a timed event trigger, write your custom code to filter subscriptions, register code to timed event, create an Email template for subscription expiry alert and put some code to trigger it for desired subscriptions. Please read following threads

How to trigger a timed event?
viewtopic.php?f=42&t=11433

How to find subscription going to expire?

Code: Select all

DateTime dateTime = CommerceBuilder.Utility.LocaleHelper.LocalNow;
        //expring in next 15 days
        dateTime = dateTime.AddDays(15);
        CommerceBuilder.Orders.SubscriptionCollection subscriptions = CommerceBuilder.Orders.SubscriptionDataSource.LoadForCriteria(" ExpirationDate < '"+dateTime.ToString()+"' ");
How to create Email Template?
viewtopic.php?f=44&t=11483
How to send manual Email?
viewtopic.php?f=42&t=8682

User avatar
svetalex
Ensign (ENS)
Ensign (ENS)
Posts: 15
Joined: Fri Feb 22, 2008 1:37 pm

Re: Subscriptions - automate email

Post by svetalex » Tue Jul 07, 2009 8:18 am

Thanks mazhar. It was helpful.

Post Reply