GtmProductHelperMapShoppingCartItemsInternal Method |
Namespace: CMS.Ecommerce
protected virtual IEnumerable<GtmData> MapShoppingCartItemsInternal( IEnumerable<ShoppingCartItemInfo> cartItems, Object additionalData = null, string purpose = null )
Exception | Condition |
---|---|
ArgumentNullException | Thrown when cartItems is null. |
To customize returned gtmData override this method in similar fashion.
base.MapCartItemsInternal(gtmObject, additionalData, purpose);
gtmData.Add("key", "value");
To customize the whole mapping process do not call base implementation.