Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Payment Options


joebob2k10

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...