Announcement

Collapse
No announcement yet.

auto referrer login

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

    auto referrer login

    Id this doable ? We've got a site with a range of products, but inbound links from affiliates should show a more limited range of products. Is it possible to add something to an inbound URL that will log them in and for that particular account to show restricted access ?
    Richard Gosler
    Phoenix Digital Media Ltd
    Dorset, UK

    #2
    Hi,

    You could try the following:

    - Create a generic customer account and set which products you want to show for this account
    - Copy the 'login.html' file in the '<site>/SiteHtml' folder
    - Paste it in the root of the site folder and rename it to 'autologin.html'
    - Edit 'autologin.html'
    - Find the '<body>' tag. You will see:

    <body onload="PreloadImages(

    - Change this to:

    <body onload="SubmitLogin('MainLoginForm');PreloadImages(

    - Then search for :

    name="USER"

    - This should take you to the 'input' tag for the username. Add a value for the username of the account to this tag, for example:

    <input type="text" value="accountusername" name="USER" size="20" maxlength="60" />

    - Then search for:

    name="PASS"

    - This should take you to the 'input' tag for the password. Add a value for the password of the account, for example:

    <input type="password" value="accountpassword" name="PASS" size="20" maxlength="60" />

    - Close and save the file
    - Add the autologin.html file to 'Design | Additional Files'
    - The referrer link (as per the AUG) should point to the autologin.html page which will display the login page with the username and password field already filled in and then automatically bounce them into the store.

    You could edit autologin.html further to hide the input tags and just display a message if you wish.

    I hope this helps.
    ********************
    Tracey
    SellerDeck

    Comment


      #3
      Thanks Tracey,
      I'll give it a try. The site in question is: www.aloeride.eu
      Richard Gosler
      Phoenix Digital Media Ltd
      Dorset, UK

      Comment


        #4
        That works really well but I can still see the section page for the product. Is it possible to hide the section based on customer group in the same way? Or with some js or a conditional ?
        Richard Gosler
        Phoenix Digital Media Ltd
        Dorset, UK

        Comment


          #5
          This knowledge base article might help.
          Last edited by KB2; 22-Mar-2010, 03:56 PM. Reason: Updating kb links
          ********************
          Tracey
          SellerDeck

          Comment

          Working...
          X