Siebel eSales Administration Guide > Shopping Service Methods Reference > Siebel eSales User Action Methods >

GetCartInfo Method


This method retrieves the number of root products present in the cart, and is called when items are added to or deleted from the cart.

Preconditions for Calling the GetCartInfo Method

This method is invoked to obtain the number of current items in the cart. The active quote must exist and the CurrentQuoteId profile attribute must be populated, otherwise the number of current items in the cart returns as 0. The Quote Item business component and the Quote business object are passed to this method as an optional input argument. In the event that these items are not passed to the method, then by default the GetCartInfo method takes Quote as a business object and SS Quote Item as a business component.

Arguments for the GetCartInfo Method

The GetCartInfo method has the arguments shown in Table 25.

Table 25. GetCartInfo Arguments
Name
Type
Data Type
Optional
Comments

Count

Output

String

N

Returns count of root items present in the current cart.

SSBusComp

Input

String

Y

Specifies the business component to be queried.

SSBusObj

Input

String

Y

Specifies the business object containing the business component to be queried.

Pseudo-Algorithm for GetCartInfo

  • If the SSBusComp argument is not passed, this method reads the value of CurrentQuoteId profile attribute to obtain the current quote ID and to query the SS Quote Item business component. With the additional search specification, this retrieves the number of root line items present in the quote.
  • Sets the record count as output of the method. If the additional search specification has a value defined as part of the Cart Count Search Spec business service user property, then this value overwrites the Root Quote Items search specification, and is then used, along with Quote Id, to get the line item for the current quote.
Siebel eSales Administration Guide Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices.