*********************************************SMALL FIX FOR ORDER IP RECORDER*********************************************
Open catalog/admin/includes/classes/order.php file
IP Address: xxx.xxx.xxx.xxx ISP: xxx.xxx
Now you can see "ISP:" with information.
Find:
$order_query = tep_db_query("select customers_name, customers_company, customers_street_address, customers_suburb, customers_city, customers_postcode, customers_state, customers_country, customers_telephone, customers_email_address, customers_address_format_id, delivery_name, delivery_company, delivery_street_address, delivery_suburb, delivery_city, delivery_postcode, delivery_state, delivery_country, delivery_address_format_id, billing_name, billing_company, billing_street_address, billing_suburb, billing_city, billing_postcode, billing_state, billing_country, billing_address_format_id, payment_method, cc_type, cc_owner, cc_number, cc_expires, currency, currency_value, date_purchased, orders_status,ipaddy, ipisp last_modified from " . TABLE_ORDERS . " where orders_id = '" . (int)$order_id . "'");
Replace with:
$order_query = tep_db_query("select customers_name, customers_company, customers_street_address, customers_suburb, customers_city, customers_postcode, customers_state, customers_country, customers_telephone, customers_email_address, customers_address_format_id, delivery_name, delivery_company, delivery_street_address, delivery_suburb, delivery_city, delivery_postcode, delivery_state, delivery_country, delivery_address_format_id, billing_name, billing_company, billing_street_address, billing_suburb, billing_city, billing_postcode, billing_state, billing_country, billing_address_format_id, payment_method, cc_type, cc_owner, cc_number, cc_expires, currency, currency_value, date_purchased, orders_status,ipaddy, ipisp, last_modified from " . TABLE_ORDERS . " where orders_id = '" . (int)$order_id . "'");
(Optional)
if you don't want to display message about ip address and isp address like this IP Address: xxx.xxx.xxx.xxx ISP: xxx.xxx, than in catalog/checkout_process.php , use this way
Than find:
<tr>
<td class="main">
<?php echo HEADING_IPRECORDED_1;
$ip_iprecorded = YOUR_IP_IPRECORDED;
$isp_iprecorded = YOUR_ISP_IPRECORDED;
$ip = $HTTP_SERVER_VARS["REMOTE_ADDR"];
$client = gethostbyaddr($HTTP_SERVER_VARS["REMOTE_ADDR"]);
$str = preg_split("/./", $client);
$i = count($str);
$x = $i - 1;
$n = $i - 2;
$isp = $str[$n] . "." . $str[$x]; ?>
<?php echo "<div align="justify"><font size=".1">$ip_iprecorded: $ip<br>$isp_iprecorded: $isp"; ?></div>
</td>
</tr>
And replace with:
<tr>
<td class="main">
<?php
$ip_iprecorded = YOUR_IP_IPRECORDED;
$isp_iprecorded = YOUR_ISP_IPRECORDED;
$ip = $HTTP_SERVER_VARS["REMOTE_ADDR"];
$client = gethostbyaddr($HTTP_SERVER_VARS["REMOTE_ADDR"]);
$str = preg_split("/./", $client);
$i = count($str);
$x = $i - 1;
$n = $i - 2;
$isp = $str[$n] . "." . $str[$x]; ?>
</td>
</tr>
That's All...
(No file included into zip file.)