Announcement

Collapse
No announcement yet.

Capture new customer's IP

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

    Capture new customer's IP

    Hello,

    I've added this to ACED> Customer Fields, figuring a successful registration lands here & would trigger this to capture the user's IP address into a Customer custom field 'custcreateip'.

    Code:
    <mvt:item name="customfields" param="Write_Customer_ID(l.settings:customer:id,l.settings:customer:custcreateip,s.remote_addr)" />
    I thought at that point in time, the new customer has an ID, we're writing to their custcreateip field, putting the s.remote_addr (IP) there. I seem to be missing something though. Any thoughts?

    This is in an effort to be able to blacklist an IP if we find out right after they register that they're a fraudulent user.

    Thanks!
    Darrel

    #2
    If the custom Customer field code is 'custcreateip' then your SMT code should be:
    Code:
    <mvt:item name="customfields" param="Write_Customer_ID(l.settings:customer:id, 'custcreateip', s.remote_addr)" />
    Bruce Golub
    Phosphor Media - "Your Success is our Business"

    Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
    phosphormedia.com

    Comment


      #3
      Thanks Bruce. I see your correction, and applied it. I'm still not getting the IP into that field though. I've got custom fields enabled (in Items) on ACED. That shouldn't be needed on ACAD too for this, right?

      Any other thoughts? My corrected line of code is sitting in Customer Fields. I figured the page load after the new customer goes from ACAD to ACED (this is the path right?) would cause it to execute.

      Comment


        #4
        Well, check those assumptions:
        make sure the page where customer lands is ACAD
        eval &mvt:customer:id; and make sure its populated when landing on that page.
        Bruce Golub
        Phosphor Media - "Your Success is our Business"

        Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
        phosphormedia.com

        Comment


          #5
          Tagging in here because I have a continuing problem with Custom Customer Fields not passing the data on to anywhere.
          Leslie Kirk
          Miva Certified Developer
          Miva Merchant Specialist since 1997
          Previously of Webs Your Way
          (aka Leslie Nord leslienord)

          Email me: [email protected]
          www.lesliekirk.com

          Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

          Comment

          Working...
          X