joebob2k10 Posted January 14, 2009 Share Posted January 14, 2009 I am trying to set up the ability for the administrator to have a customer comp payment option. So I have added and installed a new module called comp.php and have updated it with an if statement. Now when I log in as admin I can see this as a payment option. But when I select it I am taken back to the payment selection and "Please select a payment method for your order." Is at the top of my page. Any suggestions as to how to fix this? I guess I need to do more work in checkout_payment.php? // class constructor function comp() { global $order; $this->code = 'comp'; $this->title = MODULE_PAYMENT_COMP_TEXT_TITLE; $this->description = MODULE_PAYMENT_COMP_TEXT_DESCRIPTION; $this->sort_order = MODULE_PAYMENT_COMP_SORT_ORDER; if ($order->customer['firstname'] == Administrator) { $this->enabled = ((MODULE_PAYMENT_COMP_STATUS == 'True') ? true : false); } if ((int)MODULE_PAYMENT_COMP_ORDER_STATUS_ID > 0) { $this->order_status = MODULE_PAYMENT_COMP_ORDER_STATUS_ID; } if (is_object($order)) $this->update_status(); } Link to comment Share on other sites More sharing options...
joebob2k10 Posted January 15, 2009 Author Share Posted January 15, 2009 bump Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.