Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Set order to paid with coupon use


fred77fr

Recommended Posts

Posted

Hello

Sorry for my poor English.

 

I want to change the status of an order follows a use of a coupon for the link to the file downloadable apparaise immediately and not after validation in the administration.

I think ccerr.php must be changed but I can not.

 

Thanks

Posted
Hello

Sorry for my poor English.

 

I want to change the status of an order follows a use of a coupon for the link to the file downloadable apparaise immediately and not after validation in the administration.

I think ccerr.php must be changed but I can not.

 

Thanks

No idea what contrib you are using, but you may have to realease it in admin.

Posted
No idea what contrib you are using, but you may have to realease it in admin.

Sorry

I used CCGV (trad) and Download_Controllerv5.3 MS2.2_2

In admin, payment module ccerr.php (credit class error) have not possibilities to set order to paid.

How to modify this ?

 

Thanks

Posted

At first I found.

In checkoup_process.php

Before the code

// BOF: WebMakers.com Added: Downloads Controller
//  OrderCheck
//  Added 'orders_id' => $insert_id, to the list below
 $sql_data_array = array('orders_id' => $insert_id,
					  'customers_id' => $customer_id,

 

I added

if ($order->info['payment_method'] == '') {
$order->info['order_status'] = 4;
}

 

Can you tell me if this code is correct and has no security problem.

 

You can try with the coupon: d66a3f

On http://www.toutpourchanter.com

Archived

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

×
×
  • Create New...