Quote Originally Posted by MikeyG View Post
I have at last gone live with my upgrade so on version 1.3.7 Yippeeee!

However couple of small niggles.

First one I have posted above regarding the error when using the batch update status.
First off, congrats! The first one is always the hardest.

Yeah I looked at that one. I think it has something to do with the structure of the table. Try this: open admin/includes/functions/extra_functions/super_orders_functions.php and scroll down to the function update_status(). After the call to global $db (first line inside the function), add the following code:
Code:
  if ($notified == '') {
    $notified = 0;
  }
Upload and see what you get.
The second question is regarding the payment gateway and how do I get orders placed using a credit card over the web through the protx gateway to come up in Super orders with the payment details and status as paid.

If I have missed the instructions some where I apologies. I am hoping that I do not have to enter the payment details for every order that goes through the web sight and protx okay.
Someone PM'd me with the same question, just for a different gateway. The answer is the same: you need to get your payment gateway to input the payment data to the Super Orders tables. If the gateway uses the cc_ fields in the `orders` table, this should happen automatically if you properly modified the catalog-side order class as described in the readme.

If it does not use those fields, then you need to do a little coding (emphasis on the "little"). Open includes/classes/super_order.php and take a look at the function cc_line_item(). There you'll find the logic to add lines to the SO payment tables.

Make a copy of this function, rename it, and simply modify it to look at the payment information created by your payment gateway, instead of the stuff in `orders`. Finally, replace cc_line_item() with this function in the catalog-side order class. I hope that doesn't sound more complicated than it is; all you need is some PHP knowledge.
Quote Originally Posted by aeolidia View Post
I installed super orders on a 1.3.7 site and everything is working fine in the admin, but when you click to confirm your order (last stage of checkout), you get this error:

Fatal error: Call to a member function on a non-object in /home/blablabla/includes/classes/order.php on line 891

When I remove the chunk of code needed for super orders from order.php, the order goes through just fine.

Here is the code that seems to be causing me trouble:

Code:
// BEGIN Super Orders edit
// add CC data as a line item to SO payment system
if (zen_not_null($this->info['cc_type']) || zen_not_null($this->info['cc_owner']) || zen_not_null($this->info['cc_number'])) {
  require(DIR_WS_CLASSES . 'super_order.php');
  $so = new super_order($insert_id);
  $so->cc_line_item();
}
// END Super Orders edit
I'm stuck! Thanks.
Sounds like you didn't upload the super_order.php class to the catalog. The class needs to go in admin/includes/classes/super_order.php and includes/classes/super_order.php. The module download has the file in both places, you just need to upload the whole thing (i.e. not just the "admin" folder).