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

Table 38. 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 for GetShoppingCartStatus

  1. If CurrentQuoteId is empty or equals to EMPTY_CART:

    Set Quote Type = Quotation;

    Set Status = Empty;

    Set Count = 0;

    End.

  2. If Quote Type is not Persistent Cart:

    Set Quote Type accordingly;

    Set Status = Empty;

    Set Count = 0;

    End.

  3. Loop through the Quote Item business component. Set Status and Count accordingly.
Siebel eSales Administration Guide Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices.