Forums / Bug Reports / [DONE v1.3.8] Order status for freecharger

[DONE v1.3.8] Order status for freecharger

Locked

Views: 2,081

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
18 Mar 2007, 6:21 PM
#1
disciple avatar

disciple

Totally Zenned

Join Date:
Aug 2004
Posts:
278
Plugin Contributions:
0

[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

19 Mar 2007, 2:54 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [DONE v1.3.8] Order status for freecharger

Currently, it appears to be picking up the setting for the:

Configuration ... GV Coupon ...

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!

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

19 Mar 2007, 3:06 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [DONE v1.3.8] 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:

  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 ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

19 Mar 2007, 10:32 PM
#4
disciple avatar

disciple

Totally Zenned

Join Date:
Aug 2004
Posts:
278
Plugin Contributions:
0

Re: [DONE v1.3.8] Order status for freecharger

I tested out the payment options and they all seem to work correctly now.

Thanks

Rick

19 Mar 2007, 10:36 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [DONE v1.3.8] Order status for freecharger

Thanks for the update and testing this out! :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!