Click or drag to resize
GtmOrderHelperMapOrderItemsInternal Method
Maps OrderItemInfos to list of GtmData representing Google Tag Manager order item objects. Order items contain products array in given order and does not contain any order data.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax
C#
protected virtual IEnumerable<GtmData> MapOrderItemsInternal(
	OrderInfo order,
	Object additionalData = null,
	string purpose = null
)

Parameters

order
Type: CMS.EcommerceOrderInfo
Items of OrderInfo to be mapped to list of Google Tag Manager order item object.
additionalData (Optional)
Type: SystemObject
Data with additional non-conflicting key value pairs to be merged with each mapped OrderItemInfo.
purpose (Optional)
Type: SystemString
Contextual information fitting for customizations.

Return Value

Type: IEnumerableGtmData
The GtmData that represents Google Tag Manger order items object.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when order is null.
See Also