2011-01-05

Introduction

The subscription feature in Mailware allows you to create recurring orders for products or services on a Yearly, Monthly, Weekly and Daily basis.  It uses the Mailware scripting tools to generate new orders for products on a periodic basis and updates the number of issues left for each customer.  The subscription module requires some set up by Core Technologies.  The following is a description on how to set up subscription products and how to use the scripts.

Jump To

Creating Subscription Products

Processing Subscriptions

Managing Subscriptions

Creating Subscription Products

Create the Products-These are the products that you will be sending out with each recurring order.  For these instructions, we will be using the subscription tools for magazines.

For help on creating products click here

Create Subscription Products- These are non-inventory products that you will set up for each subscription that you have.  You will need to create subscription products for each type of subscription that you have.  For instance, if you offer a yearly and a monthly subscription for the same physical magazine you will need to create two subscription products.

Open the Inventory screen by clicking on

Click on the button.  This is will create a new record in the Products table.

Enter in the following information

Product #-We are going to set up a monthly magazine description so we will create one that identifies it we will call it WIRED MONTHLY

Name- Wired Magazine Monthly Description

Description- Wired Magazine Monthly Description

Retail-Enter the price you will charge the user for the whole year.

Click on the tab and enter the following information.

Check the Non-Inventory Item check box

Check the Subscription check box

Click on the button this will open up the Subscription Settings screen. Enter the following information.

Select Monthly from the Frequency drop down.

Enter 12 for the duration for 12-months

Select the product that you will be sending out every month from the Ship Product No drop down

Select 1 for the quantity.

Repeat the process for each subscription combination that you have.

Processing Subscriptions

Mailware employs the use of two scripts to process subscription orders.  The first, called CreateAndUpdateSubscriptions checks the Mailware orders table for any subscriptions that were ordered and adds/updates the records in the subscription table.  The second, called CreateSubscriptionOrders is the script that creates orders for the subscription products when they are due.  They are both run from the Tools menu.

Run CreateAndUpdateSubscriptions-Click on the CreateAndUpdateSubscriptions option from the Tools menu

You will get the following confirmation dialog box

Click on the OK button

You will get another confirmation dialog box

Click on the OK button.

When the script is complete you will get the following dialog box NOTE: If you do not get this message the script failed for some reason.

Run CreateSubscriptionOrders-This script should be run near the time that subscriptions are supposed to be sent out.

Click on the CreateSubscriptionOrders option from the Tools menu

You will get the following confirmation dialog box

Click on the OK button

You will get another confirmation dialog box

Click on the OK button.

When the script is complete you will get the following dialog box NOTE: If you do not get this message the script failed for some reason.

Managing Subscriptions

When the subscription option is set up another tab is added to the Customer screen to track the status of subscriptions.

To view the status of a customers subscription click on 

Search for your customer using the icon.

Click on the tab

The following screen will show The fields shown are as follows.

Product No- This is the subscription product number that the customer ordered.

Start Dt- This is the date that the subscription starts.  For an initial subscription this is the same as the date the subscription was ordered.  For renewals it is the date that the new subscription period starts.

Expiration Dt- This is the date that the selected subscription will expire.

Auto Renewal-If this option is checked, the system will automatically renew the subscription when the existing one expires.

Order No- This is the order number for the subscription order.

OrderDt-This is the date that the subscription was ordered.

Last Order No- This is the last time an order was issued for the subscription.  This is the last order number associated with the product shipped.

Last Order Dt-This is the last date an order was created for the subscription.

Remaining Orders-This is the number of times that a new order will be created for this subscription.  The number depends on the type of subscription.

Next Order Dt- This is the next time an order will be generated for this subscription.  Note: This value is not updated until the following day after the last order is issued.

On Hold-Checking this box will prevent new subscriptions orders from being created.

Hold Reason-This is a text field that allows you to enter a Hold reason.

Canceled-Checking this box will permanently prevent new subscription orders from being generated for this subscription.

Clicking the  button will also show all of the expired subscriptions for the selected customer.

 

UNDER THE HOOD: The subscription feature uses the following tables, Subscription, Product, Customer and Items.  When a subscription product is created the subscription information is added to the Products table.  In addition to the standard product information the following fields are updated, IsSubscription is set to True,SubscriptionFrequency, SubscriptionStartDay (only used for weekly subscriptions), SubscriptionDuration,SubscriptionShipProductNo and SubscriptionQuantity.

The CreateAndUpdateSubscriptions script queries the Items table and searches for any orders that contain Products that are flagged as subscription products and puts the order and payment information into a temporary table.  This table is compared with the existing Subscription table and any duplicates are removed from the temporary table and any new ones are added from the temporary table.

The CreateSubscriptionOrders script checks the Subscription table for any subscriptions that are due for generating orders and creates orders for the products.  The script pulls the payment information from the subscription table and adds it to the orders.  It also decrements the Remaining Orders, updates the LastOrderDt, LastOrderNo fields in the Subscription table.

Show more