Forums / Addon Payment Modules / echo-inc bugfix for sales over $1000

echo-inc bugfix for sales over $1000

Locked

Views: 1,113

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
27 Feb 2007, 9:27 PM
#1
languido avatar

languido

New Zenner

Join Date:
Nov 2006
Posts:
1
Plugin Contributions:
0

echo-inc bugfix for sales over $1000

If you use the old echo-inc payment method (which works well for us in 1.3.7), there is an error which scrambles any charge amount over $1000 in this file:

includes/modules/payment/echo_cc.php

See line 268:

Change this:

$echoPHP->set_grand_total(number_format($order->info['total'], 2));

To this:

$echoPHP->set_grand_total(number_format($order->info['total'], 2, '.', ''));

hth