IDeliveryBuilderSetFromCart Method |
Sets currently constructed Delivery according to supplied shopping cart and adds cart items selected by
itemSelector predicate.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 9.0.0
Syntax 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 items are delivered.
See Also