Click or drag to resize
DefaultDeliveryBuilderGetItemCustomDataContainers Method
Override this method to populate the supplied list with the custom data containers.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 10.0.0
Syntax
C#
protected virtual void GetItemCustomDataContainers(
	List<IDataContainer> containers,
	ShoppingCartItemInfo cartItem
)

Parameters

containers
Type: System.Collections.GenericListIDataContainer
The list of containers to be populated.
cartItem
Type: CMS.EcommerceShoppingCartItemInfo
The cart item for which the custom data is processed.
Remarks
The following code illustrates how to add custom data to DeliveryItem.
protected override void GetItemCustomDataContainers(List<IDataContainer> containers, ShoppingCartItemInfo cartItem)
{
    base.GetItemCustomDataContainers(containers, cartItem);

    containers.Add(cartItem.CartItemCustomData);
}
See Also