www.uburst.com www.uburst.com

"IP Adress in order review screen?"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

General Questions
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"IP Adress in order review screen?"
Posted by Ralf Schwab on May-30-02 at 01:18 PM (EST)
Hello,

is it possible to include the Customers IP Adress
in the order review screen (last order step)?
I have included the IP Adress in the e-mail notification but i think it is a good idea,
to include it also in the review screen.

Best regards

schwab ralf

Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

RE: IP Adress in order review scree..., Bill Weiner, May-31-02, (1)
Thank YOU, Ralf Schwab, Jun-10-02, (2)
RE: Thank YOU, Bill Weiner, Jun-11-02, (3)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: IP Adress in order review screen?"
Posted by Bill Weiner on May-31-02 at 05:32 AM (EST)
Do you mean the "Review Order" page (where the customer selects his/her payment type)? Or do you mean the final "Thank You" page?

Here's how you could add the customer's IP address to the "footer" portion of the final "Thank You" page:

STEP 1: Make a backup of your ushop.pl script... just in case.

STEP 2: Open your ushop.pl script with any text editor such as WordPad.

STEP 3: Do a search on the following line:

$order_form_html =~ s/ < USHOP FOOTER > /$order_footer/g;

In case the above line does not show up correctly in this forum, it is the line directly ABOVE the line that reads:

# Output .html form.

... so you can search on that line too.

STEP 4: Immediately before the line:

$order_form_html =~ s/ < USHOP FOOTER > /$order_footer/g;

Try adding these lines:

if (($REMOTE_ADDR =~ /\S/) && ($REMOTE_ADDR ne "NONE"))
{
$order_footer .= " < BR > Your IP Address Is: $REMOTE_ADDR < BR >";
}

(Again the above code may not appear correctly in this forum.... so make sure that there are NO spaces around the greater-than and less-than signs.)

STEP 5: Save the script... as TEXT if your editor asks... and try it out!

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
2 . "Thank YOU"
Posted by Ralf Schwab on Jun-10-02 at 01:08 PM (EST)
Hello Bill,

perfect answer as usual !
It works verry fine.
I have one other question:
Where have i to add the IP lines if i want to
show the IP Adress in the Review Order Page ?

Thank you again

best regards

schwab ralf

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
3 . "RE: Thank YOU"
Posted by Bill Weiner on Jun-11-02 at 06:56 AM (EST)
Below are instructions on how to add the IP Address to the "Review Order" page:

STEP 1: Make a backup of your ushop-lib.pl script... just in case.

STEP 2: Open your ushop-lib.pl script with any text editor such as WordPad.

STEP 3: Do a search on the following line:

$order_footer .= &get_review_page_buttons();

STEP 4: Immediately after that line, insert these 5 lines:

$REMOTE_ADDR = $ENV{'REMOTE_ADDR'};
if ($REMOTE_ADDR =~ /\S/)
{
$order_footer .= " < BR > Your IP Address Is: $REMOTE_ADDR < BR >";
}

(Note that the above code may not appear correctly in this forum.... so make sure that above 5 lines did not wrap and that there are NO spaces around the greater-than and less-than signs.)

STEP 5: Save the script... as TEXT if your editor asks... and try it out!

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.