Technical documentation - Delivery options

This article explains how to configure delivery options.

Description

Delivery options are contolled on two levels.

Providers

The ValidateOrderProvider returns which delivery options exist for an order. It could be e.g. Standard, Express and Shipping date. The provider will return the Description and Id for the delivery option. The Id is used in profile.config for the configuration.

If provider returns Id ShippingDate it will trigger a date picker to select date to appear.

Profile.config

 Profile.config contains the below options.

<OrderAdditionalInformation> <!-- Delivery methods may be displayed as a drop down or as radio buttons. Default is radio buttons. --> <DeliveryMethodDisplayStyle>DropDown</DeliveryMethodDisplayStyle> <!-- Providers return which options exist, but options may be discarder. List Id of options to remove. The Id correspond to the Id of the option returned from the provider. --> <OrderDeliveryOptionRemoved>EX</OrderDeliveryOptionRemoved> <!-- Set default selection by listing Id of default option. --> <DefaultSelectedDeliveryMethod>STD</DefaultSelectedDeliveryMethod> <!-- If request shipping date option exist, then allow user to select requested shipping date as today + X days. The Id correspond to the Id of the option returned from the provider. --> <RequestShippingDate>1</RequestShippingDate> </OrderAdditionalInformation>