[DONE v1.3.8] Order status for freecharger
Hi,
We have taken our upgraded store (1.37) live and are having a small issue. I have the freecharger downloads set to delivered and the paypal ipn downloads set to processing to keep them separate for bookkeeping purposes. It was working fine with our previous version of zen cart.
Now all downloads are showing as processing even though they are set correctly. I deleted and tried to reset but it did not help.
Any suggestions as to what else I should do?
Thanks
Rick
Re: Order status for freecharger
Currently, it appears to be picking up the setting for the:
Configuration ... GV Coupon ...
Quote:
Default Order Status For Zero Balance Orders
When an order's balance is zero, this order status will be assigned to it.
Isn't that moofy? :blink:
Moving this to Bug Reports ... thanks!
Re: Order status for freecharger
Try this solution ...
Edit the file:
/includes/classes/orders.php
Replace the top of the function create, approximately at line 560, with this code:
PHP Code:
function create($zf_ot_modules, $zf_mode = 2) {
global $db;
if ($this->info['total'] == 0) {
if (DEFAULT_ZERO_BALANCE_ORDERS_STATUS_ID == 0) {
$this->info['order_status'] = DEFAULT_ORDERS_STATUS_ID;
} else {
if ($_SESSION['payment'] != 'freecharger') {
$this->info['order_status'] = DEFAULT_ZERO_BALANCE_ORDERS_STATUS_ID;
}
}
}
if ($_SESSION['shipping'] == 'free_free') {
$this->info['shipping_module_code'] = $_SESSION['shipping'];
}
Be sure to test this for all other Payment modules as well ...
Re: Order status for freecharger
I tested out the payment options and they all seem to work correctly now.
Thanks
Rick
Re: Order status for freecharger
Thanks for the update and testing this out! :smile: