Posted by Carlitus on December 23, 2010 at 7:16pm
| Project: | Ubercart Payment Method Adjustments |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
The module doesn't work as espected when you want to use a number with decimals separated by , and with %. It rounds the number to an integer.
Example: 3,5% --> 3%
I've fixed this inserting the folowing code in line 188, after " $ret['description'] = t('@name fee', array('@name' => $adjustment_data['name']));"
$adjustment = str_replace(variable_get('uc_currency_dec', '.'), ".", $adjustment);