public function fixed(&$amount, array &$components, array $price_rule, array $data)
    {
        $value = $this->convertValue($price_rule, $data['currency']);
        $components[$price_rule['price_rule_id']] = array('rule' => $price_rule, 'price' => $value);
        return $amount += $value;
    }
public function fixed(&$amount, array &$components, array $price_rule, array $data)
    {
        $value = $this->convertValue($price_rule, $data['currency']);
        $components[$price_rule['price_rule_id']] = array('rule' => $price_rule, 'price' => $value);
        return $amount += $value;
    }
public function fixed ( & $ amount , array & $ components , array $ price_rule , array $ data ) { $ value = $ this -> convertValue ( $ price_rule , $ data [ 'currency' ] ) ; $ components [ $ price_rule [ 'price_rule_id' ] ] = array ( 'rule' => $ price_rule , 'price' => $ value ) ; return $ amount += $ value ; }
Adds a fixed price rule value to the original amount
@param int $amount
@param array $components
@param array $price_rule
@param array $data
@return int
Adds a fixed price rule value to the original amount