IDeliveryBuilder.SetFromCart 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: 8.2.23
Syntaxvoid SetFromCart(
ShoppingCartInfo cart,
Func<ShoppingCartItemInfo, bool> itemSelector = null
)
Parameters
- cart
- Type: CMS.Ecommerce.ShoppingCartInfo
Shopping cart to be packed in delivery. - itemSelector (Optional)
- Type: System.Func<ShoppingCartItemInfo, Boolean>
Predicate deciding which items will be placed into delivery.
When null, all items are delivered.
See Also