Gets the count of total items in the cart equivalent to the sum of all quantities. Introduced in 2023.1
| Method | GetCartItemCount |
The request body is of type GetCartItemCount.
// Example: // Gets the current cart item count MakeAJAXCall("Cart.GetCartItemCount", {}, console.log)
The response body is of type GetCartItemCountResponse.
| Name | Description | Data Type |
|---|---|---|
| GetCartItemCountResult | A string value containing a JSON object.
{
"Data": {
"ItemCount": 3
},
"Result": {
"Success": true,
"Message": "There are 3 items in the Shopping Cart.",
"ElapsedTime": "3 ms"
}
}
| TaskOfString |