Announcement

Collapse
No announcement yet.

Getting customer email from cookie

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

    Getting customer email from cookie

    If a customer has previously checked out with "Remember Me", the email address is stored, presumably in a cookie.

    How can I get at it?

    #2
    Cookie is on their machine you can't get to that, you should have their email address on the order details.

    Comment


      #3
      Originally posted by cornishpirate
      If a customer has previously checked out with "Remember Me", the email address is stored, presumably in a cookie.

      How can I get at it?


      no access dude, check the order
      Affordable solutions for busy professionals.
      Website Maintenance | UK Web Hosting

      Comment


        #4
        If Checkout Page 1 can get it, why can't a Product Page?

        Comment


          #5
          Originally posted by cornishpirate
          If Checkout Page 1 can get it, why can't a Product Page?
          Hi Alan

          Can you clarify what exactly you are after please?
          Affordable solutions for busy professionals.
          Website Maintenance | UK Web Hosting

          Comment


            #6
            Yes - I am checking for an Out Of Stock condition on a Product Page. If one exists, I will give him an option to have an email sent when stock is in. If he has ordered before, then I'd rather not make him re-enter his email address.

            Comment


              #7
              Put the following into a Fragment or Product description
              Code:
              !!<<script>document.write(document.cookie);</script>>!!
              And you'll be able to see what's in the site cookie when viewing that page.
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment


                #8
                Norman

                Thanks - that sure shows it, but some challenging decoding needed!

                I realise now that the Check Out page gets the email via it's Perl script - so I guess I could make a mini version of that - even more challenging.

                Alan

                Comment


                  #9
                  There's a getCookie routine already loaded and waiting for you in actiniccore.js.
                  Norman - www.drillpine.biz
                  Edinburgh, U K / Bitez, Turkey

                  Comment


                    #10
                    Thanks, Norman.

                    That gets me the full Cookie. I'll try to extend it to extract the EMAIL= value from it and post more info here. Hopefully this year!

                    Alan

                    Comment

                    Working...
                    X