source/Application/Model/Discount.php
public function getBundleAmount($dAmount)
    {
        $dItemAmount = $this->oxdiscount__oxitmamount->value;

        // Multiplying bundled articles count, if allowed
        if ($this->oxdiscount__oxitmmultiple->value && $this->oxdiscount__oxamount->value > 0) {
            $dItemAmount = floor($dAmount / $this->oxdiscount__oxamount->value) * $this->oxdiscount__oxitmamount->value;
        }

        return $dItemAmount;
    }
public function getBundleAmount($dAmount)
    {
        $dItemAmount = $this->oxdiscount__oxitmamount->value;

        // Multiplying bundled articles count, if allowed
        if ($this->oxdiscount__oxitmmultiple->value && $this->oxdiscount__oxamount->value > 0) {
            $dItemAmount = floor($dAmount / $this->oxdiscount__oxamount->value) * $this->oxdiscount__oxitmamount->value;
        }

        return $dItemAmount;
    }
public function getBundleAmount ( $ dAmount ) { $ dItemAmount = $ this -> oxdiscount__oxitmamount -> value ; // Multiplying bundled articles count, if allowed if ( $ this -> oxdiscount__oxitmmultiple -> value && $ this -> oxdiscount__oxamount -> value > 0 ) { $ dItemAmount = floor ( $ dAmount / $ this -> oxdiscount__oxamount -> value ) * $ this -> oxdiscount__oxitmamount -> value ; } return $ dItemAmount ; }
Returns amount of items to bundle

@param double $dAmount item amount

@return double
Returns amount of items to bundle