public function hasVirtualProduct()
    {
        $virtualProductCount = OrderProductQuery::create()
            ->filterByOrderId($this->getId())
            ->filterByVirtual(1, Criteria::EQUAL)
            ->count()
        ;

        return ($virtualProductCount !== 0);
    }
public function hasVirtualProduct()
    {
        $virtualProductCount = OrderProductQuery::create()
            ->filterByOrderId($this->getId())
            ->filterByVirtual(1, Criteria::EQUAL)
            ->count()
        ;

        return ($virtualProductCount !== 0);
    }
public function hasVirtualProduct ( ) { $ virtualProductCount = OrderProductQuery :: create ( ) -> filterByOrderId ( $ this -> getId ( ) ) -> filterByVirtual ( 1 , Criteria :: EQUAL ) -> count ( ) ; return ( $ virtualProductCount !== 0 ) ; }
Check if the current order contains at less 1 virtual product with a file to download

@return bool true if this order have at less 1 file to download, false otherwise.
Check if the current order contains at less 1 virtual product with a file to download