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

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

Parameters

cart
Type: CMS.EcommerceShoppingCartInfo
Shopping cart to be packed in delivery.
itemSelector (Optional)
Type: SystemFuncShoppingCartItemInfo, Boolean
Predicate deciding which items will be placed into delivery. When null, all products are delivered.

Implements

IDeliveryBuilderSetFromCart(ShoppingCartInfo, FuncShoppingCartItemInfo, Boolean)
See Also