Display Visitor IP AddressLast Update: 17th August, 2005
Article ID: 60



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>

 

 

Trademark Policy | Copyright Policy | Sitemap

Copyright © 2000-2005 osCommerce. All rights reserved.