Siebel eSales Administration Guide > Shopping Service Methods Reference > Siebel eSales Workflow Methods >
GetShoppingCartStatus Method
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. Preconditions for Calling the GetShoppingCartStatus Method
None. Arguments for the GetShoppingCartStatus Method
The GetShoppingCartStatus method has the arguments shown in Table 40.
Table 40. GetShoppingCartStatus Arguments
|
|
|
|
|
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 for GetShoppingCartStatus
- If CurrentQuoteId is empty or equals to EMPTY_CART:
Set Quote Type = Quotation;
Set Status = Empty;
Set Count = 0;
End.
- If Quote Type is not Persistent Cart:
Set Quote Type accordingly;
Set Status = Empty;
Set Count = 0;
End.
- Loop through the Quote Item business component. Set Status and Count accordingly.
|