src/ShopBundle/objects/TShopBasket/TShopBasketVoucherCoreList.class.php
public function HasFreeShippingVoucher()
    {
        $bHasFreeShipping = false;
        $tmpCurrentPointer = $this->getItemPointer();
        $this->GoToStart();

        while (!$bHasFreeShipping && ($oItem = &$this->Next())) {
            $oVoucherSeries = &$oItem->GetFieldShopVoucherSeries();
            if ($oVoucherSeries->fieldFreeShipping) {
                $bHasFreeShipping = true;
            }
        }
        $this->setItemPointer($tmpCurrentPointer);

        return $bHasFreeShipping;
    }
public function HasFreeShippingVoucher()
    {
        $bHasFreeShipping = false;
        $tmpCurrentPointer = $this->getItemPointer();
        $this->GoToStart();

        while (!$bHasFreeShipping && ($oItem = &$this->Next())) {
            $oVoucherSeries = &$oItem->GetFieldShopVoucherSeries();
            if ($oVoucherSeries->fieldFreeShipping) {
                $bHasFreeShipping = true;
            }
        }
        $this->setItemPointer($tmpCurrentPointer);

        return $bHasFreeShipping;
    }
public function HasFreeShippingVoucher ( ) { $ bHasFreeShipping = false ; $ tmpCurrentPointer = $ this -> getItemPointer ( ) ; $ this -> GoToStart ( ) ; while ( ! $ bHasFreeShipping && ( $ oItem = & $ this -> Next ( ) ) ) { $ oVoucherSeries = & $ oItem -> GetFieldShopVoucherSeries ( ) ; if ( $ oVoucherSeries -> fieldFreeShipping ) { $ bHasFreeShipping = true ; } } $ this -> setItemPointer ( $ tmpCurrentPointer ) ; return $ bHasFreeShipping ; }
returns true if at least one voucher has free shipping.

@return bool
returns true if at least one voucher has free shipping .