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.