public function percent(&$amount, array &$components, array $price_rule)
    {
        $value = $amount * ($price_rule['value'] / 100);
        $components[$price_rule['price_rule_id']] = array('rule' => $price_rule, 'price' => $value);
        return $amount += $value;
    }
public function percent(&$amount, array &$components, array $price_rule)
    {
        $value = $amount * ($price_rule['value'] / 100);
        $components[$price_rule['price_rule_id']] = array('rule' => $price_rule, 'price' => $value);
        return $amount += $value;
    }
public function percent ( & $ amount , array & $ components , array $ price_rule ) { $ value = $ amount * ( $ price_rule [ 'value' ] / 100 ) ; $ components [ $ price_rule [ 'price_rule_id' ] ] = array ( 'rule' => $ price_rule , 'price' => $ value ) ; return $ amount += $ value ; }
Adds a percent price rule value to the original amount
@param int $amount
@param array $components
@param array $price_rule
@return int
Adds a percent price rule value to the original amount