| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Need help with code - login redirect or pop-up on page load | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Need help with code - login redirect or pop-up on page load
Here's some background: On our home page we have company logos for the OEMs that we do business with. Each has a category specific to their product line and some of these require a login to view (membership specific). Right now I have the logos set up to bring you to the login page when you click on them (those not requiring a login go directly to their category). However, after logging in, the customer is brought back to the home page and not to the category specific to their OEM.
Possible solutions: 1. Upon clicking on logo customer will be brought to their category and the login pop-up will appear upon page load. I'm not sure where to insert the code necessary for the pop-up to appear. I tried using the code below but it didn't work. Any suggestions? Code:
2. Find a way to redirect the customer to the appropriate category. I'm assuming this would be an if/then statement, but I haven't looked into this just yet. Any advise/help would be greatly appreciated.
__________________
X-Cart 4.4.4 Gold |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: Need help with code - login redirect or pop-up on page load
Redirection to home page is done in include/login.php in few placed depending on how/from where you are loggin in
Look for func_header_location('home.php'); or func_header_location($redirect_url);
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
|||
X-Cart forums © 2001-2020
|