View Single Post
  #30  
Old 06-16-2004, 06:28 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

First if you haven't patched the database apply the following SQL query in the patch/upgrade area of the X-Cart admin:

Code:
ALTER TABLE `xcart_orders` ADD `ip` VARCHAR( 15 ) NOT NULL ;

After the patch is successful...

Next, Edit include/func.php find:

Code:
return $orderids;

insert:

Code:
db_query("UPDATE $sql_tbl[orders] SET ip='$_SERVER[REMOTE_ADDR]' WHERE orderid = '$orderid'");

Above the first found line of code "return $orderids;".

This should make the mod work on all future versions as well since its not apart of the original insert for orders to avoid future confusion.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote