src/ShopBundle/objects/TShopBasket/TShopBasketDiscountCoreList.class.php
public function GetDiscountValue()
    {
        $dValue = 0;
        $iTmpPointer = $this->getItemPointer();
        $this->GoToStart();
        while ($oDiscount = $this->Next()) {
            $dValue += $oDiscount->GetValue();
        }

        $this->setItemPointer($iTmpPointer);

        return $dValue;
    }
public function GetDiscountValue()
    {
        $dValue = 0;
        $iTmpPointer = $this->getItemPointer();
        $this->GoToStart();
        while ($oDiscount = $this->Next()) {
            $dValue += $oDiscount->GetValue();
        }

        $this->setItemPointer($iTmpPointer);

        return $dValue;
    }
public function GetDiscountValue ( ) { $ dValue = 0 ; $ iTmpPointer = $ this -> getItemPointer ( ) ; $ this -> GoToStart ( ) ; while ( $ oDiscount = $ this -> Next ( ) ) { $ dValue += $ oDiscount -> GetValue ( ) ; } $ this -> setItemPointer ( $ iTmpPointer ) ; return $ dValue ; }
return the total discount value for all active discounts. note that the method will fetch the current basket
using the baskets singleton factory.

@return float
return the total discount value for all active discounts . note that the method will fetch the current basket using the baskets singleton factory .