View Single Post
  #8  
Old 08-13-2004, 08:12 AM
 
pmstudios pmstudios is offline
 

Senior Member
  
Join Date: May 2004
Posts: 133
 

Default

Ok, I found the area this is in. Check /payment/payment_cc.php and around line 88 you should see:

Code:
{ $orderids = func_place_order("$payment_method (".$module_params["module_name"].(get_cc_in_testmode($module_params)?", in test mode":"").")", "I", $order_details );

Change that line to:

Code:
{ if (empty($module_params) || $module_params["processor"]=="cc_test.php") $orderids = func_place_order("$payment_method (".$module_params["module_name"].", in test mode").")", "I", $order_details ); else $orderids = func_place_order("$payment_method", "I", $order_details );


This should store the processor name in the DB with the "in test mode" note when it's in test mode and in live mode it won't store the processor at all.

Make sure to backup payment_cc.php first as I haven't tested this, but it should work.
__________________
X-Cart 4.0.5
MySQL: 3.23.58
PHP 4.3.2
Reply With Quote