chiefwes Posted December 8, 2004 Posted December 8, 2004 Here is the situation: We run a wholesale business. As such, you must be a registered user and logged in to view prices. If a customer is viewing our site and wants to view the prices, he is redirected to the login page. After login, he is sent back to the main page of our store. How can I capture the product page he is viewing before login and redirect him back to that product page after login? Has anyone else tackled this issue? I searched the forums and contributions, but I have not seen it addressed. Any help is much appreciated. Wes
Guest Posted December 8, 2004 Posted December 8, 2004 Here is the situation: We run a wholesale business. As such, you must be a registered user and logged in to view prices. If a customer is viewing our site and wants to view the prices, he is redirected to the login page. After login, he is sent back to the main page of our store. How can I capture the product page he is viewing before login and redirect him back to that product page after login? Has anyone else tackled this issue? I searched the forums and contributions, but I have not seen it addressed. Any help is much appreciated. Wes <{POST_SNAPBACK}> A simple fix is to count the pages it takes to register and place this javascript on the registration completed page. Obviously edit the count (-5) Would, technically take them back that many pages. You may have to "force refresh" the page with this process, but it should work, if they are logged in. May not work for you... Give it a go :) <A HREF="javascript:history.go(-5)"> Return to Product </A> <HR> <A HREF="javascript:history.go(1)"> Go forward </A> TJ
chiefwes Posted December 8, 2004 Author Posted December 8, 2004 A simple fix is to count the pages it takes to register and place this javascript on the registration completed page. Obviously edit the count (-5) Would, technically take them back that many pages. You may have to "force refresh" the page with this process, but it should work, if they are logged in. May not work for you... Give it a go :) <A HREF="javascript:history.go(-5)"> Return to Product </A> <HR> <A HREF="javascript:history.go(1)"> Go forward </A> TJ <{POST_SNAPBACK}> I will give it a try and see what happens. One issue with this method mayy be the different number of pages with login vs. register. Check out my site at http://www.shackman.com/. wes
Guest Posted December 8, 2004 Posted December 8, 2004 I will give it a try and see what happens. One issue with this method mayy be the different number of pages with login vs. register. Check out my site at http://www.shackman.com/. wes <{POST_SNAPBACK}> I registered and got to the create_account_success.php page with a continue button. That button can definately be replaced with the javascript goback. Not sure about the login.php checked that out too. Have to keep them on the site for sure. Have to think about that one for a while...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.