src/ShopBundle/objects/TShopBasket/TShopBasketArticleCoreList.class.php
public function GetTotalDiscountValue()
    {
        $iCurrentPosition = $this->getItemPointer();
        $this->GoToStart();

        $dTotalDiscountValue = 0;

        while ($oItem = &$this->Next()) {
            $dTotalDiscountValue += ($oItem->dPriceTotal - $oItem->dPriceTotalAfterDiscount);
        }
        $this->setItemPointer($iCurrentPosition);

        return $dTotalDiscountValue;
    }
public function GetTotalDiscountValue()
    {
        $iCurrentPosition = $this->getItemPointer();
        $this->GoToStart();

        $dTotalDiscountValue = 0;

        while ($oItem = &$this->Next()) {
            $dTotalDiscountValue += ($oItem->dPriceTotal - $oItem->dPriceTotalAfterDiscount);
        }
        $this->setItemPointer($iCurrentPosition);

        return $dTotalDiscountValue;
    }
public function GetTotalDiscountValue ( ) { $ iCurrentPosition = $ this -> getItemPointer ( ) ; $ this -> GoToStart ( ) ; $ dTotalDiscountValue = 0 ; while ( $ oItem = & $ this -> Next ( ) ) { $ dTotalDiscountValue += ( $ oItem -> dPriceTotal - $ oItem -> dPriceTotalAfterDiscount ) ; } $ this -> setItemPointer ( $ iCurrentPosition ) ; return $ dTotalDiscountValue ; }
return the total discount value for alle articles.

@return float
return the total discount value for alle articles .