Announcement

Collapse
No announcement yet.

Need meta tag with logged-in user's email address, first and last name.

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

    Need meta tag with logged-in user's email address, first and last name.

    I need to be able to create 3 meta tags that will include a logged in users email address, first name and last name. The content needs to carry through all screens after the customer logs into their customer account.

    I've tried using this but it only displays the content on the customer account page (I was told to use the blank tags for customers that are not logged into an account):

    Code:
    <mvt:if expr="g.Basket:cust_id EQ 0">            <meta property="sl:email" content="" />
    <meta property="sl:first_name" content="" />
    <meta property="sl:last_name" content="" />
                <mvt:else>
                <meta property="sl:email" content="&mvte:global:Customer_LoginEmail;" />
    <meta property="sl:first_name" content="&mvte:global:Customer_ShipFirstName;" />
    <meta property="sl:last_name" content="&mvte:global:Customer_ShipLastName;" />
      </mvt:if>
    Of course, I may be going about this all wrong...that's why I'm trying to find out the best way to populate these items would be.

    Thanks,
    Leslie
    Last edited by lesliekirk; 10-22-15, 09:09 AM.
    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

    #2
    Re: Need meta tag with logged-in user's email address, first and last name.

    Try

    &mvt:global:customer:ship_email;
    &mvt:global:customer:ship_fname;
    &mvt:global:customer:ship_lname;

    Retrieved in seconds using Merchant Inspector :)
    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
      Re: Need meta tag with logged-in user's email address, first and last name.

      That seems to also only work on the ACED screen. It's not carrying over to any other screen.
      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


        #4
        Re: Need meta tag with logged-in user's email address, first and last name.

        hmmm, I'm seeing it on all pages...or course, I may have done something I forgot to do that.

        To be sure, why don't you set a Custom Basket field on the ACED (or wherever the Login page dumps them) and Read those fields in the HTML Profile or Head Tag/CSS template
        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
          Re: Need meta tag with logged-in user's email address, first and last name.

          I'm wondering if I'm having browser issues...I'm going to try and different browser before I try to figure out how to do what you are suggesting.
          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