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
|
|
|
|
|
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
- 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.
|