Click or drag to resize
DefaultDeliveryBuilder.AddItems Method
Adds calculation request items selected by the itemSelector predicate to the constructed Delivery.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 11.0.0
Syntax
C#
protected virtual void AddItems(
	CalculationRequest request,
	Func<CalculationRequestItem, bool> itemSelector = null
)

Parameters

request
Type: CMS.Ecommerce.CalculationRequest
The CalculationRequest object from which the items are added.
itemSelector (Optional)
Type: System.Func<CalculationRequestItem, Boolean>
The predicate deciding which items are added to Delivery. When null, all items are added.
Remarks
All items representing products are included. The itemSelector allows you to further narrow the subset if items placed into constructed delivery.
See Also