Click or drag to resize
DefaultDeliveryBuilderAddItems Method
Adds cart items selected by the itemSelector predicate to the constructed Delivery.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 10.0.0
Syntax
C#
protected virtual void AddItems(
	ShoppingCartInfo cart,
	Func<ShoppingCartItemInfo, bool> itemSelector = null
)

Parameters

cart
Type: CMS.EcommerceShoppingCartInfo
The ShoppingCartInfo object from which the items are added.
itemSelector (Optional)
Type: SystemFuncShoppingCartItemInfo, Boolean
The predicate deciding which items are added to Delivery. When null, all items are added.
Remarks
All items representing products are included. The itemSelector allows you to further narrow the subset if items placed into constructed delivery.
See Also