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.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 11.0.0
Syntax 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:
IEnumerableGtmDataThe
GtmData that represents Google Tag Manger order items object.
Exceptions See Also