User Guide
Shopping Cart Reference 159
GetItemCount()
Returns the number of line-items currently in the shopping cart. Note that this is
not the total quantity of items ordered (see GetTotalQuantity()). Example: If the
shopping cart contains a single line in which 5 of ProductX are ordered,
GetItemCount() returns 1 and GetTotalQuantity() returns 5. This is useful for
testing whether the shopping cart is empty (in which case the method returns 0)
before conducting various operations on the shopping cart. Is used, for instance,
in the contract "Don't show if Cart is Empty."
GetItemQuantity(itemID)
Returns the number of items ordered for a product corresponding to the itemID
argument. If multiple items of the same product are in the shopping cart
(see AddItemAllowMultiples()), returns the quantity for the last occurrence of
the item.
GetOrderFromDB(DbRecordset)
Retrieves an order from the recordset specified by the DbRecordset parameter.
This is useful if you want to provide the ability for shoppers to modify unshipped
orders, for instance. This assumes that you pass the DbRecordset filtered on the
OrderID already.
GetSalesTax()
Returns the current value stored in the shopping cart's SalesTax property.
GetShipping()
Returns the current value stores in the shopping cart's Shipping property.
GetSubTotal()
Returns the value of the shopping cart order total prior to any adjustments (that is
order-level discount and fees).
GetTotalQuantity()
Returns the total number of items ordered. This is distinguished from
GetItemCount(), which returns the number of line-items in the cart. Example: If
the shopping cart contains a single line in which 5 of ProductX are ordered,
GetItemCount() returns 1 and GetTotalQuantity() returns 5.