Kentico 11 API Reference
Kentico 11 API Reference
Namespaces
CMS.Ecommerce Namespaces
CMS.Ecommerce
ShoppingCartInfoProvider Class
ShoppingCartInfoProvider Methods
AddShoppingCartItem Method
AddShoppingCartItemInternal Method
CalculateTotalItemsWeight Method
CalculateTotalItemsWeightInternal Method
CheckShoppingCart Method
CheckShoppingCartInternal Method
CopyShoppingCartItems Method
CopyShoppingCartItemsInternal Method
DeleteShoppingCartInfo Method
DeleteShoppingCartInfoInternal Method
DeleteShoppingCartItems Method
DeleteShoppingCartItemsInternal Method
EmptyShoppingCart Method
EmptyShoppingCartInternal Method
EvaluateContent Method
EvaluateContentInternal Method
GetOrderInvoice Method
GetOrderInvoiceInternal Method
GetShoppingCartInfo Method
GetShoppingCartInfoFromOrder Method
GetShoppingCartInfoFromOrderInternal Method
GetShoppingCartInfoInternal Method
GetShoppingCartItem Method
GetShoppingCartItemInternal Method
GetShoppingCartResolver Method
GetShoppingCartResolverInternal Method
GetShoppingCarts Method
GetShoppingCartsInternal Method
GetTotalUnits Method
GetTotalUnitsInternal Method
RemoveShoppingCartItem Method
RemoveShoppingCartItemInternal Method
SetOrder Method
SetOrderInternal Method
SetOrderItems Method
SetOrderItemsInternal Method
SetShoppingCartInfo Method
SetShoppingCartInfoInternal Method
SetShoppingCartItem Method
SetShoppingCartItemInternal Method
UpdateShoppingCartFromOrder Method
UpdateShoppingCartFromOrderInternal Method
UpdateShoppingCartItemInternal Method
ShoppingCartInfoProvider
GetTotalUnits Method
Returns sum of all shopping cart items' units, bundle items and product options are not included.
Namespace:
CMS.Ecommerce
Assembly:
CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 11.0.0
Syntax
C#
Copy
public
static
int
GetTotalUnits
(
ShoppingCartInfo
cart
)
Parameters
cart
Type:
CMS.Ecommerce
ShoppingCartInfo
Shopping cart data
Return Value
Type:
Int32
See Also
Reference
ShoppingCartInfoProvider Class
CMS.Ecommerce Namespace
Copyright (c) 2017 Kentico Software
Send comments on this topic to
support@kentico.com