Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Feb 2008
    Posts
    118
    Plugin Contributions
    0

    Default Hotlink the IP address on Email Receipts?

    Hi guys, this is a simple idea... but not so easy due to hidden data!

    At the bottom of every (admin) email receipt there's a section that looks this (except it has the customer details filled in):

    -----------------------------------------------------
    Office Use Only:
    From: ----
    Email: ----
    Login Name: ----
    Login Email: ----
    IP Address: 255.255.255.255
    Host Address: ----
    Date and Time: ----
    -----------------------------------------------------

    All I want to do it make the IP Address,
    hotlink to this IP Lookup website:

    http://www.myiptest.com

    I use this website to check whether the country matches the billing/shipping address...
    if it does, great... if it doesn't, then I make a judgement call... and if it shows Nigeria, I cancel the order.

    I've gotten into the habit of checking EVERY order, which has paid off more than once...
    so it would be a lot easier if the IP address was a pre-filled hotlink to the website I mention above... click, done!

    Any idea where to find the core IP address code for the email receipt?
    Also, any idea how to make it dynamic so the IP address is entered into the lookup form automatically?

    I'm just trying to streamline the process in as few steps as possible.

    Thx

  2. #2
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,246
    Plugin Contributions
    58

    Default Re: Hotlink the IP address on Email Receipts?

    Since the IP test website uses no parameters in their urls to force the form action, you cannot....


    This site does..... http://network-tools.com/

    So for example, in the email template locate the string for the IP address and pre-pend it with


    http://network-tools.com/default.asp?prog=express&host=

    For a click-able link.

    ~Melanie
    PRO-Webs, Inc. since 2003 :: Zen Cart Hosting :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are not conducive to a helpful community.

  3. #3
    Join Date
    Feb 2008
    Posts
    118
    Plugin Contributions
    0

    Default Re: Hotlink the IP address on Email Receipts?

    Actually, out of curiosity I dug into their source and tried it.. it works...
    just add the IP to the end of the URL string with a forward slash:

    http://www.myiptest.com/staticpages/...98.244.194.132

    I still can't find the IP Address section of the admin email tho... all I see is a variable called "$EXTRA_INFO"...
    and the Developers Tools results don't show anything regarding the data mentioned above... it's all unrelated???

    Where does that "Office Use Only" data originate from?
    Last edited by blackhalo; 4 Aug 2011 at 01:32 AM.

  4. #4
    Join Date
    Feb 2008
    Posts
    118
    Plugin Contributions
    0

    Default Re: Hotlink the IP address on Email Receipts?

    Please disregard the second half of the message above...
    I found the IP data around line #506 in: includes/functions/functions_email.php

    My PHP is a little rusty though...
    I'm pretty sure this is escaped properly... yes?

    '<tr><td class="extra-info-bold">' . OFFICE_IP_ADDRESS . '</td><td>' . '<a href="http://www.myiptest.com/staticpages/index.php/IP-Lookup/' . $_SESSION['customers_ip_address'] . '">' . $_SESSION['customers_ip_address'] . '</a>' . ' - ' . $_SERVER['REMOTE_ADDR'] . '</td></tr>' .
    I don't have a test account setup to place a fake order... hehe...
    I'm just trying to get it right the first time... and for forum posterity.

    That should work, yeah?
    Last edited by blackhalo; 4 Aug 2011 at 01:50 AM.

 

 

Similar Threads

  1. Email Invoice and Receipts
    By Nick1973 in forum General Questions
    Replies: 3
    Last Post: 26 Apr 2011, 11:53 PM
  2. Is it possible to get the customer's mailing address on my paypal receipts?
    By soulsplan in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 Feb 2010, 12:30 AM
  3. In Admin/Email Options, which email address gets the middle-8 CC# digits?
    By ksolito in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 28 Dec 2007, 08:32 PM
  4. Add Customer Email to HTML order Receipts
    By Lawbird123 in forum Managing Customers and Orders
    Replies: 0
    Last Post: 5 Dec 2007, 04:37 PM
  5. Add 'manufacturer' to email receipts?
    By creativearc in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 10 Sep 2007, 04:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg