From The Template Shop.com

General Information
Display Visitor IP Address
By oscommerce.info
Oct 23, 2006, 16:43

Introduction

The IP Address is automatically stored in the database for customer accounts and orders. Some store owners like to display this information to the customer whilst they are browsing the store. This can be achieved by following these simple directions.

Solution

The following solution can be added to includes/footer.php after line 20 for it to be shown on all pages of the catalog:

<table width="100%">
<tr>
    <td align="center" class="smallText">
      <?php echo 'Your IP Address is: ' . tep_get_ip_address();
?>
</td></tr></table>



© Copyright by The Template Shop