Function uc_cart_get_contents() in :


This function is used to return the contents of the user's cart.

When the function is called with no arguments, it will return the current customer's shopping cart. Alternately, you may specify a cart ID to load.

The function caches cart contents to prevent multiple database queries. If you need to load more than one cart, you're going to have to use the second argument to rebuild the cached contents.

Return value:
No return value.