Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Free of Charge not updating order status


theyhavelanded

Recommended Posts

  • 1 year later...
I have fresh copy of OSC with Download Controller and Master Products. My free of charge contribution (Not the one bulit into download controller) is not updating status when being used. any ideas of why? It worked up untill I implemented Master products with Attribs.

 

 

Find this...

------- in .../incudes/modules/payment/freeofcharge.php -------

 

// class constructor

function freeofcharge() {

global $order;

 

$this->code = 'freeofcharge';

$this->title = MODULE_PAYMENT_FOC_TEXT_TITLE;

$this->description = MODULE_PAYMENT_FOC_TEXT_DESCRIPTION;

$this->sort_order = MODULE_PAYMENT_FOC_SORT_ORDER;

$this->enabled = ((MODULE_PAYMENT_FOC_STATUS == 'True') ? true : false);

if (is_object($order)) $this->update_status();

}

 

--- replace with --------------------

// class constructor

function freeofcharge() {

global $order;

 

$this->code = 'freeofcharge';

$this->title = MODULE_PAYMENT_FOC_TEXT_TITLE;

$this->description = MODULE_PAYMENT_FOC_TEXT_DESCRIPTION;

$this->sort_order = MODULE_PAYMENT_FOC_SORT_ORDER;

$this->enabled = ((MODULE_PAYMENT_FOC_STATUS == 'True') ? true : false);

 

if ((int)MODULE_PAYMENT_FOC_ORDER_STATUS_ID > 0) {

$this->order_status = MODULE_PAYMENT_FOC_ORDER_STATUS_ID;

}

 

if (is_object($order)) $this->update_status();

}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...