I think I've fixed the GV problem... but similar issues may (and probably do) exist with other credits (coupons, for example). Also I have confirmed that the problems described above exist on a fresh 1.3.6 install so please take this seriously.
To fix GV:
open /includes/modules/order_total/ot_gv.php
find the function called "pre_confirmation_check" and change the line to
Code:
global $order, $currencies;
and change the line
Code:
if ($_SESSION['cot_gv'] > $this->user_has_gv_account($_SESSION['customer_id'])) {
to
Code:
if ($_SESSION['cot_gv'] > $currencies->value($this->user_has_gv_account($_SESSION['customer_id']))) {
Then find the function called "calculate_credit" and change the lines:
Code:
global $db, $order;
$gv_payment_amount = $_SESSION['cot_gv'];
to
Code:
global $db, $order, $currencies;
$gv_payment_amount = $currencies->value($_SESSION['cot_gv'], true, DEFAULT_CURRENCY);
- Steven
Bookmarks