| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Controlling destination page after logging in | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() We just purchased XCart, so please bear with me if this note should have been posted in a different forum ...
I'm still learning the ropes of the program (and the support forums), and one issue that's cropped up early is the destination page a visitor is taken to after logging in. What I'm looking to do is this .... when a visitor enters the log in info in the log in form, and then clicks to submit the info, I'd like them to be returned to the page they logged in from. Can someone explain how I might go about setting this up ... or how to control where the person logging in is directed to? Thanks
__________________
Version 4.0.2 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Get the current script name, add it as a new hidden input field to the login form. Then edit include/login.php and make proper adjustments to the func_header_location($redirect_to."/cart.php"); and the ..."/home.php" as these two files would need to be replaced with the new variable. Lets say the hidden input field name is prev_page you would setup the redirects in login.php like:
Code:
hth. ![]() |
|||||||||
|
|||
X-Cart forums © 2001-2020
|