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 ?
Announcement
Collapse
No announcement yet.
auto referrer login
Collapse
X
-
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