Click or drag to resize
DefaultDeliveryBuilderSetFromCart Method
Sets the currently constructed Delivery according to the supplied shopping cart.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 10.0.0
Syntax
C#
public virtual 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.

Implements

IDeliveryBuilderSetFromCart(ShoppingCartInfo, FuncShoppingCartItemInfo, Boolean)
Remarks

The following data is taken from the shopping cart:

Please note that CustomData are not populated from the shopping cart. The same applies to CustomData created from cart items. To include some custom data into Delivery, inherit your custom delivery builder.

See Also