Recurring Orders

Recurring orders – or subscription orders – is a feature which makes it possible for customers to create a series of future orders, which are then automatically generated and paid at intervals selected by the customer during checkout (Figure 1.1).

Figure 1.1 Marking an order as a recurring order - and selecting a frequency and end date

Once set up, the default customer order flow is:

  • Login with an extranet login.
  • Add product(s) to the shopping cart.
  • Go to shopping cart
  • In the information step check the “Create recurring order” checkbox (Figure 1.2)
  • Select the frequency (how often you want the order to recur)
  • Select the dates that you want the recurring order to start and end
  • Fill out standard order details, e.g. name, address, payment method, shipping method etc.
  • Complete the order

When the customer places a recurring order, a base recurring order is created in the Ecommerce system, and a scheduled task takes care of generating actual orders from it at the appropriate point in time.

Customers can then view and interact with their recurring orders from the Customer Center app, and Administrators can view base recurring orders from the recurring order list in Ecommerce > Recurring orders, or from the user details page of the user who placed the recurring order.

Here’s how to add and work with recurring orders on your solution.

Note: Recurring orders are implemented with the following checkout handlers:

  • Stripe
  • ChargeLogic
  • Quickpay Payment Window
  • DIBS FlexWin

Once a recurring order is placed, the system creates a base order in Ecommerce > Recurring Orders, containing a list of calculated future deliveries.

The base order is a template for future orders, but is not itself a real order, and is not posted to the payment provider (i.e. you won’t find REC##-orders in the administration interface for your payment providers).

You can access the list of all base recurring orders from the Recurring orders node under All recurring orders (Figure 2.1).

Figure 2.1 The recurring orders node

The list of base orders can be filtered and searched just like standard order lists.

Click a recurring order to access the order details of the base order (Figure 2.2) – from which you have access to the recurring tab.

Figure 2.2 The Recurring tab for a recurring order

The recurring orders tab (Figure 3.1) is available from the order details view of all orders which are part of a series of recurring orders.

Figure 3.1 The recurring-tab

Using the buttons you can:

  • Access the list of previous deliveries (Figure 3.2) in an order list format. You can also access the previous deliveries overview from the user details of the user who created the recurring order – read more about user details here.
Figure 3.2 The previous deliveries list
  • Access the list of the calculated future deliveries (Figure 3.3). You can click the green checkmark to cancel a delivery, and the red X to reactivate it
  • Cancel the entire recurring order - this cancels all future deliveries based in the base order
  • Access the order log
Figure 3.3 The future deliveries list

If you need an overview of events and errors for recurring order, click the recurring orders log node (Figure 4.1) in the Ecommerce tree.

Figure 4.1 The log node for recurring orders

By default only errors are listed but you can change one of the filters in order to show both events and errors (“Everything”).

You can filter to see the log for a specific period be selecting a date in From and To.

Figure 4.2 A recurring order log

Once the first recurring order is created, a scheduled task will be created in Settings > System > Scheduled tasks (Figure 5.1). This scheduled task generates recurring orders based on the list of future deliveries on each base order.

Figure 5.1 The scheduled task for recurring orders

The orders are created and processed by the ordinary payment flow, and listed in the ordinary order list with an icon (a clock) indicating that they are part of a series of recurring orders.

By default, the task is run every 5 minutes, but you can click the dropdown to customize it to your scenario. Be careful not to overload your server, though.

In order to set up automatic recurring payments, a recurring order stores a token from the payment provider using the saved cards functionality. If the saved card is not named by the user on creation, it will be named automatically using the ID of the base recurring order.

Currently, a user cannot change the credit card information saved on a base order, so if a card expires or a customer desires to use a new card for payment the current recurring order must be canceled and a new recurring order created.

To implement recurring orders on your solution, you need to do two things:

  • Modify the order steps on your shopping cart app to allow people to make an order recurring and show them a receipt for which makes sense.
  • Modify your customer center app templates to allow logged-in users to view and interact with their recurring orders

To set up recurring orders on your shopping cart:

  • Go to the page with your Shopping Cart app, and open the app settings
  • Select the InformationRecurringOrder template for the Steps > Information step – or modify your current information template with fields for enabling recurring orders, an interval field and an end date field.
  • Select the ReceiptRecurringOrder template for your Steps > Receipt step – or modify your current receipt template to show e.g. order intervals and an end date. You can use the tags Ecom:Order.IsRecurringOrder and Ecom:Order.IsBasedOnRecurringOrder to differentiate between the email sent when a base order has been created and the emails sent after each order has been placed.
  • Save

Your customers can now place recurring orders when checking out.

To set up recurring orders on your Customer Center app:

  • Go to the page with your Customer Center app and open the app settings
  • In the menu texts section, customize the recurring orders settings (Figure 6.2) to fit your solution or language
Figure 6.2 You can customize the menu text and image for the recurring order tab

In the Templates section of the Customer Center app settings, make the following changes:

  • For the Menu layout template, select NavigationRecurringOrders.html – or add Ecom:CustomerCenter.RecurringOrders to your current menu layout template
  • In your Order Details template add a link to the recurring order details page – see the PrintOrderRecurring.html template for an example
  • For your Order list template, select the OrderListRecurring,html template – or modify your current order list template to include a column with links to the recurring order details page
  • Select the RecurringOrderList.html template and the RecurringOrderDetails.html template in the corresponding fields in the templates section (Figure 6.3). They render a list of recurring orders and a recurring order details page
  • Save and close your app settings
Figure 6.3 The Customer Center templates section

Once recurring orders have been added to the Customer Center, your customers can view and interact with their recurring order from there – e.g. cancel entire recurring orders (subscriptions) (Figure 7.1.

Figure 7.1 A customer can see and interact with recurring orders from the Customer Center

Or de- and reactivate individual instances of the recurring order from the details view (Figure 7.2).

Figure 7.2 A customer can de- and reactivate individual instances of a recurring order from the details view

Completed orders based on the main recurring order, are listed under “Previous deliveries”.


This is the database table associated with the Recurring Orders functionality:


Contains setup data for recurring orders.

Field name Data type Length
RecurringOrderId int 4
RecurringOrderUserID int 4
RecurringOrderBaseOrderID nvarchar 50
RecurringOrderStartDate datetime 8
RecurringOrderEndDate datetime 8
RecurringOrderInterval int 4
RecurringOrderIntervalUnit int 4
RecurringOrderCanceledDeliveries nvarchar Max
RecurringOrderLastDelivery datetime 8