Siebel eSales Administration Guide > Shopping Service API > Workflow Methods >

GetShoppingCartStatus


GetShoppingCartStatus is called to get the status of the Shopping Cart (current quote as indicated by the CurrentQuoteId profile attribute). It returns three output arguments: Status, Quote Type, and Count.

Expected Preconditions Before the Method Can Be Called

None.

Arguments

The GetShoppingCartStatus method has the arguments shown in Table 54.

Table 54. GetShoppingCartStatus Arguments
Name
Type
Data Type
Optional
Comments
Quote Type
Output
String
Y
Type of the current quote record.
If Persistent Cart, check Status and Count to determine whether the quote is empty or not.
If not Persistent Cart, Status will always be Empty and Count will always be 0 even though the current quote record might contain line items.
Status
Output
String
Y
Can be Empty or Not Empty.
Count
Output
String
Y
Number of line items in the Shopping Cart.
Quote Id
Input
String
Y
Not used.
ReturnVal
Output
String
Y
Returns Success or Fail. Not used.

Pseudo-Algorithm

  1. If CurrentQuoteId is empty or equals to EMPTY_CART:
  2. Set Quote Type = Quotation;

    Set Status = Empty;

    Set Count = 0;

    End.

  3. If Quote Type is not Persistent Cart:
  4. Set Quote Type accordingly;

    Set Status = Empty;

    Set Count = 0;

    End.

  5. Loop through the Quote Item business component. Set Status and Count accordingly.

 Siebel eSales Administration Guide 
 Published: 18 April 2003