Click or drag to resize
DefaultDeliveryBuilderInitCustomData Method
Override this method to add custom data to the constructed Delivery.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 10.0.0
Syntax
C#
protected virtual void InitCustomData(
	ShoppingCartInfo cart
)

Parameters

cart
Type: CMS.EcommerceShoppingCartInfo
The shopping cart from which the custom data is gotten.
Remarks
The following code illustrates possibilities of adding custom data to Delivery.
protected override void InitCustomData(ShoppingCartInfo cart)
{
    base.InitCustomData(cart);

    // Single value
    SetCustomData("RegisteredCustomer", cart.Customer.CustomerIsRegistered);

    // Add complete shopping cart's custom data to delivery
    AddContainerToCustomData(cart.ShoppingCartCustomData);
}
See Also