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.