Click or drag to resize
GtmProductHelperMapShoppingCartItems Method
Maps shopping cart items to collection of GtmData that represents properties and values of Google Tag Manger products.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 11.0.0
Syntax
C#
public static IEnumerable<GtmData> MapShoppingCartItems(
	IEnumerable<ShoppingCartItemInfo> cartItems,
	Object additionalData = null,
	string purpose = null
)

Parameters

cartItems
Type: System.Collections.GenericIEnumerableShoppingCartItemInfo
Shopping cart items to be mapped.
additionalData (Optional)
Type: SystemObject
Data with additional non-conflicting key value pairs to be merged with every ShoppingCartItemInfo.
purpose (Optional)
Type: SystemString
Contextual information fitting for customizations.

Return Value

Type: IEnumerableGtmData
The GtmData that represents Google Tag Manger product object.
See Also