Technical documentation - AssertDBProvider order delivery options

It is possible to define a set of order types the user may choose from and delivery methods on these order types.

The configuration option is available in the AssertPlaceOrderProvider only.  

Version 4.5. This function is available in version 4.5 and later. In earlier versions only two or three pre-defined delivery methods could be configured and selected.

Overview

The order page delivery options cover the following:

  • Enabling to select delivery method

  • Enable and allow user to select order type

  • For each order type, if order type is used

Selector on order page may look like this.

Configuration

Configuration is done in profile.config and in custom-text.config.

profile.config

<!-- Options are available if AssertPlaceOrderProvider is used --> <PlaceOrderProvider> <AssertPlaceOrderProvider> </AssertPlaceOrderProvider> </PlaceOrderProvider> <OrderAdditionalInformationSettings> <!-- Enabling selection of delivery option --> <DeliveryMethodEnabled>true</DeliveryMethodEnabled> <!-- Make requested shipping date available as an option. --> <ShippingDateDeliveryEnabled>true</ShippingDateDeliveryEnabled> <!-- Allow user to select other delivery option, which contains a free text field. --> <OthersDeliveryEnabled>false</OthersDeliveryEnabled> <!-- Define order types for the order type selector --> <OrderTypeSettings> <OrderType> <Id>Type1</Id> <!-- Display text, refers to a key text in custom-text.config --> <DescriptionKey>Day</DescriptionKey> </OrderType> <OrderType> <Id>Type2</Id> <DescriptionKey>Season</DescriptionKey> </OrderType> </OrderTypeSettings> <!-- Define delivery options for each order type --> <DeliveryOptionSettings> <DeliveryOption> <Id>Del1</Id> <!-- The order type id which this delivery option will display --> <OrderTypeId>Type1</OrderTypeId> <!-- Display text, refers to a key text in custom-text.config --> <DescriptionKey>Normal</DescriptionKey> <Available>true</Available> </DeliveryOption> <DeliveryOption> <Id>Del2</Id> <OrderTypeId>Type1</OrderTypeId> <DescriptionKey>Express</DescriptionKey> <Available>true</Available> </DeliveryOption> <DeliveryOption> <Id>Del3</Id> <OrderTypeId>Type2</OrderTypeId> <DescriptionKey>Normal</DescriptionKey> <Available>true</Available> </DeliveryOption> <DeliveryOption> <Id>Del4</Id> <OrderTypeId>Type2</OrderTypeId> <DescriptionKey>Date</DescriptionKey> <Available>true</Available> </DeliveryOption> </DeliveryOptionSettings> </OrderAdditionalInformationSettings>