Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

How to change redirect on login.php

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-05-2014, 12:33 PM
 
Meredith Martin Davis Meredith Martin Davis is offline
 

Advanced Member
  
Join Date: Sep 2007
Posts: 70
 

Default How to change redirect on login.php

Hi,
We'd like to change the page that the customer is taken to after they login to their account. How do I go about doing that?

We're using 4.1.8, yes, in the dark ages, but it still works.

Thanks.
__________________
4.1.8
Reply With Quote
  #2  
Old 03-05-2014, 05:27 PM
  cherie's Avatar 
cherie cherie is offline
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: How to change redirect on login.php

Here's an old note that might at least point you in the right direction:

In include/login.php around line 261, replace:

PHP Code:
...
    if (!
func_is_cart_empty($cart)) { 

with:

PHP Code:
...
     if (
$login_type == 'C') {
          
func_header_location($redirect_to.'/pages.php?pageid=29');
    } elseif (!
func_is_cart_empty($cart)) { 
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote

The following user thanks cherie for this useful post:
qualiteam (03-05-2014)
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:02 PM.

   

 
X-Cart forums © 2001-2020