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