CyberStore Cart Web Service
MethodGetCartItemCount
CyberStore Cart Web Service > All Operations Resource Group : GetCartItemCount (Method)
Description
Gets the count of total items in the cart equivalent to the sum of all quantities. Introduced in 2023.1
Request (GetCartItemCountSoapIn)

The request body is of type http://www.theoutdoorscompany.com/Ecommerce/Services/Cart/:GetCartItemCount.

Example
The following example shows how to perform the web operation in CyberStore.
// Example: 
// Gets the current cart item count

MakeAJAXCall("Cart.GetCartItemCount", {}, console.log)
200 Response (GetCartItemCountSoapOut)

The response body is of type http://www.theoutdoorscompany.com/Ecommerce/Services/Cart/:GetCartItemCountResponse.

Response Body Parameters

NameDescriptionData Type

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"
    }
}

 

http://www.theoutdoorscompany.com/Ecommerce/Services/Cart/:TaskOfString
See Also
All Operations Resource GroupCyberStore Cart Web Service