Click or drag to resize
IDeliveryBuilderSetFromCart Method
Sets the currently constructed Delivery according to the supplied shopping cart and adds cart items selected by the itemSelector predicate.

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

Parameters

cart
Type: CMS.EcommerceShoppingCartInfo
The shopping cart to be packed in the constructed Delivery.
itemSelector (Optional)
Type: SystemFuncShoppingCartItemInfo, Boolean
The predicate deciding which items are added to Delivery. When null, all items are added.
See Also