Announcement

Collapse
No announcement yet.

Customer IP Addresses

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Customer IP Addresses

    I know people have looked for customer ip addresses before for earlier versions of Miva and in my old store I used to log them.... Since I upgraded to the new Iron & Wool Ready Theme, Miva 9.00064 I no longer see the ip addresses for customer orders.

    I noticed under "order processing" the Authorization Failures tab there IS a column that shows the customer IP address for the failures. BUT

    I don't see that column under the orders tab? Where can I find the IP address of the successful orders?
    Thank you,
    Terri
    http://www.charmandhammer.com
    Gear for Hard Working Women

    #2
    The best way to capture the IP address of the customer would be to create a custom customer field with the code of "order_ip" and then add the following code to your INVC page:
    Code:
    <mvt:if expr="l.settings:page:code CIN 'INVC'">
        <mvt:item name="customfields" param="Write_Order(l.settings:order:id, 'order_ip', s.remote_addr)" />
    </mvt:if>
    Once this is in place, you will be able to go into an order, click on the "Custom Fields" link, and see the order IP address.

    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment


      #3
      That will work, I guess my quandry is that the system is already logging ip address for the failures. Why wouldn't it do it for the successes. If it prints out on the INVC - the customer sees their own Ip address, not the admin/backend of the store?
      Thank you,
      Terri
      http://www.charmandhammer.com
      Gear for Hard Working Women

      Comment


        #4
        I'm not sure about the tracking for successful orders; I will have to check into that. As for the displaying on INVC, the code I provided will only set the IP as a custom field which is visible only in the administration portal when you view the details of an order; so the customer will never see it.
        Matt Zimmermann

        Miva Web Developer
        Alchemy Web Development
        https://www.alchemywebdev.com
        Site Development - Maintenance - Consultation

        Miva Certified Developer
        Miva Professional Developer

        https://www.dev4web.net | Twitter

        Comment


          #5
          ok I got it working. That is, I can see the ip address in the individual order details. Thank you.
          Thank you,
          Terri
          http://www.charmandhammer.com
          Gear for Hard Working Women

          Comment


            #6
            Can I take this further, and show the country the customer's IP address is associated with? What would that code look like?
            Thank you,
            Terri
            http://www.charmandhammer.com
            Gear for Hard Working Women

            Comment


              #7
              For that you would need to connect with a third-party geo-location service or have a database of IP address to perform the look-up your self.
              Matt Zimmermann

              Miva Web Developer
              Alchemy Web Development
              https://www.alchemywebdev.com
              Site Development - Maintenance - Consultation

              Miva Certified Developer
              Miva Professional Developer

              https://www.dev4web.net | Twitter

              Comment

              Working...
              X