src/Hametuha/HametWoo/Utility/Tools.php
public function has_shipping( $order ) {
		$virtual = true;
		foreach ( $this->get_all_products_in( $order ) as $product ) {
			/* @var \WC_Product $product */
			if ( ! $product->is_virtual() ) {
				$virtual = false;
				break;
			}
		}
		return ! $virtual;
	}
public function has_shipping( $order ) {
		$virtual = true;
		foreach ( $this->get_all_products_in( $order ) as $product ) {
			/* @var \WC_Product $product */
			if ( ! $product->is_virtual() ) {
				$virtual = false;
				break;
			}
		}
		return ! $virtual;
	}
public function has_shipping ( $ order ) { $ virtual = true ; foreach ( $ this -> get_all_products_in ( $ order ) as $ product ) { /* @var \WC_Product $product */ if ( ! $ product -> is_virtual ( ) ) { $ virtual = false ; break ; } } return ! $ virtual ; }
Detect if order has shipping product

@param int|\WC_Order|\stdClass $order Order object.

@since 0.8.3
@return bool
Detect if order has shipping product