You are here

function uc_cart_is_shippable in Ubercart 7.3

Same name and namespace in other branches
  1. 5 uc_cart/uc_cart.module \uc_cart_is_shippable()
  2. 6.2 uc_cart/uc_cart.module \uc_cart_is_shippable()

Determines whether a cart contains shippable items or not.

1 call to uc_cart_is_shippable()
uc_quote_uc_cart_pane in shipping/uc_quote/uc_quote.module
Implements hook_uc_cart_pane().

File

uc_cart/uc_cart.module, line 1337

Code

function uc_cart_is_shippable($cart_id = NULL) {
  $items = uc_cart_get_contents($cart_id);
  foreach ($items as $item) {
    if (uc_order_product_is_shippable($item)) {
      return TRUE;
    }
  }
  return FALSE;
}