Hi All,
So I have this working with ZC1.5.5. Just had to change the two mysql_affected_rows to mysqli_affected_rows. So everything is working with one exception. On the checkout page when credits are applied it's actually being applied twice. In the function get_order_total function I added a line
Code:
echo 'ot: ' . $order_total . ' td:' . $this->deduction . '<br />';
Now on the checkout page I see this three times. First above header, second in cart contents box and third just above store credits box.
The first shows ot: 71 td:
The second ot: 71 td: 71
The third ot: -71 td: -142
in the totals area of the cart contents the sub-total is $71 (correct), no tax(correct), no shipping(correct), store credit -142, total -71.
This only happens when the available credit amount is greater than the order total amount. if the available credit is $200 and the cart total is $50 the entire available credit is wiped out and set to $0.
I am really having a hard time with this one. I can not figure out why this is happening. Your help is greatly appreciated.
Thank You,
John
Bookmarks