Index: uc_donate/uc_donate_pane.js =================================================================== --- uc_donate/uc_donate_pane.js (revision 1635) +++ uc_donate/uc_donate_pane.js (working copy) @@ -18,7 +18,7 @@ $('h4#donate_total').highlightFade({color:'yellow',speed:2000,iterator:'sinusoidal'}); if (donateTotal > 0) { - set_line_item('donations','Added Donations',donateTotal,-1); + set_line_item('donations','Added Donations',donateTotal * 1,-1); } }); }); Index: uc_donate/uc_donate.module =================================================================== --- uc_donate/uc_donate.module (revision 1635) +++ uc_donate/uc_donate.module (working copy) @@ -169,6 +169,25 @@ } } +/** + * Implementation of hook_order(). + */ +function uc_donate_order($op, &$arg1, $arg2) { + switch ($op) { + case 'total': + // Could be improved upon. + if (is_array($arg1->line_items)) { + foreach ($arg1->line_items as $key => $line_item) { + if ($line_item['title'] == t('Added Donations')) { + print "returning: ".$line_item['amount']; + return $line_item['amount']; + } + } + } + break; + } +} + /******************************************************************************* * Callback Functions, Forms, and Tables ******************************************************************************/