You are here

function uc_cart_is_shippable in Ubercart 6.2

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

Determines whether a cart contains shippable items or not.

7 calls to uc_cart_is_shippable()
uc_cart_checkout_form in uc_cart/uc_cart.pages.inc
The checkout form built up from the enabled checkout panes.
uc_cart_checkout_review in uc_cart/uc_cart.pages.inc
Allows a customer to review their order before finally submitting it.
uc_checkout_pane_billing in uc_cart/uc_cart_checkout_pane.inc
Gets the billing information.
uc_checkout_pane_delivery in uc_cart/uc_cart_checkout_pane.inc
Gets the delivery information.
uc_cybersource_hop_form in payment/uc_cybersource/uc_cybersource.module
Define values to be posted to CyberSource.

... See full list

File

uc_cart/uc_cart.module, line 1700

Code

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