source/Application/Model/Basket.php
public function getTotalDiscountSum()
    {
        $dPrice = 0;
        // subtracting total discount
        if ($oPrice = $this->getTotalDiscount()) {
            $dPrice += $oPrice->getPrice();
        }

        if ($oVoucherPrice = $this->getVoucherDiscount()) {
            $dPrice += $oVoucherPrice->getPrice();
        }

        return $dPrice;
    }
public function getTotalDiscountSum()
    {
        $dPrice = 0;
        // subtracting total discount
        if ($oPrice = $this->getTotalDiscount()) {
            $dPrice += $oPrice->getPrice();
        }

        if ($oVoucherPrice = $this->getVoucherDiscount()) {
            $dPrice += $oVoucherPrice->getPrice();
        }

        return $dPrice;
    }
public function getTotalDiscountSum ( ) { $ dPrice = 0 ; // subtracting total discount if ( $ oPrice = $ this -> getTotalDiscount ( ) ) { $ dPrice += $ oPrice -> getPrice ( ) ; } if ( $ oVoucherPrice = $ this -> getVoucherDiscount ( ) ) { $ dPrice += $ oVoucherPrice -> getPrice ( ) ; } return $ dPrice ; }
Gets total discount sum.

@return float|int
Gets total discount sum .