How can SurfShop capture the IP Address of a customer?

Please check here first before posting a question. We will update this forum on a regular basis with tips and how-tos.

Moderator: frankjan

Post Reply
frankjan
Site Admin
Posts: 392
Joined: May 03, 2004 8:57 pm
Contact:

How can SurfShop capture the IP Address of a customer?

Post by frankjan » Oct 04, 2004 7:23 pm

Here's how to capture the IP address of your customers:

-----------------------------

1. Add a new field called 'IP_Address' [without the quotes] to your orders database using the "Add/Delete Database Fields" feature on the Orders List admin page.

2. In shop.cgi, add the following line right arount line 157:

Code: Select all

$main::global->{form}->{'IP_Address'}         = $ENV{'REMOTE_ADDR'};
-----------------------------

The IP Address will now show up on the View Payment Info screen of each order.  Be aware that this value may be null in some cases.

This feature could come in handy to give you more ammunition to help track down a fraudulent order.
Frank Jance
SurfShop Forum Admin

Setting Up Shop Has Never Been Easier!

frankjan
Site Admin
Posts: 392
Joined: May 03, 2004 8:57 pm
Contact:

Re: How can SurfShop capture the IP Address of a customer?

Post by frankjan » Dec 22, 2004 5:39 pm

This feature is included in SurfShopPRO. The above instructions are for previous versions of SurfShop only.
Frank Jance
SurfShop Forum Admin

Setting Up Shop Has Never Been Easier!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest