Subscription start date

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
egormsen
Captain (CAPT)
Captain (CAPT)
Posts: 236
Joined: Fri May 16, 2008 9:16 am

Subscription start date

Post by egormsen » Wed Mar 02, 2016 5:00 am

Anyone have any ideas on the best way to figure out how long a customer has been a subscriber of one our subscription plans? We would like to reachout to people who have been subscribers certain amount of time (ie 6 months, 12 months) with special offers.

Thanks,
Eldon Gormsen
Weigh Down Ministries
AC Gold R12 SR1
http://store.weighdown.com

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

Re: Subscription start date

Post by mazhar » Wed Mar 02, 2016 5:56 am

How about using Order Date of subscription?

egormsen
Captain (CAPT)
Captain (CAPT)
Posts: 236
Joined: Fri May 16, 2008 9:16 am

Re: Subscription start date

Post by egormsen » Wed Mar 02, 2016 6:57 am

I must be looking in the wrong place - I don't see an order date in the subscription table. In that table there are dates for Expiration, NextOrder, LastOrder, ExpirationAlert

Where do I find that original order date?
Eldon Gormsen
Weigh Down Ministries
AC Gold R12 SR1
http://store.weighdown.com

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

Re: Subscription start date

Post by mazhar » Wed Mar 09, 2016 1:02 am

For this you will have to use a JOIN query. Subscription is created against an order item which belong to an order. Following query will get you all subscriptions with related order date

Code: Select all

SELECT S.SubscriptionId, O.OrderDate FROM ac_Subscriptions AS S 
INNER JOIN ac_OrderItems AS OI ON S.OrderItemId = OI.OrderItemId
INNER JOIN ac_Orders AS O ON OI.OrderId = O.OrderId

egormsen
Captain (CAPT)
Captain (CAPT)
Posts: 236
Joined: Fri May 16, 2008 9:16 am

Re: Subscription start date

Post by egormsen » Wed Mar 09, 2016 4:32 am

Thank you!
Eldon Gormsen
Weigh Down Ministries
AC Gold R12 SR1
http://store.weighdown.com

Post Reply