public function Cart::isShippable in Ubercart 8.4
Determines whether a cart contains shippable items or not.
Return value
bool TRUE if the cart contains at least one shippable item, FALSE otherwise.
Overrides CartInterface::isShippable
File
- uc_cart/
src/ Cart.php, line 193
Class
- Cart
- Utility class providing methods for the management of shopping carts.
Namespace
Drupal\uc_cartCode
public function isShippable() {
$items = $this
->getContents();
foreach ($items as $item) {
if (uc_order_product_is_shippable($item)) {
return TRUE;
}
}
return FALSE;
}