X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to change redirect on login.php (https://forum.x-cart.com/showthread.php?t=68774)

Meredith Martin Davis 03-05-2014 12:33 PM

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.

cherie 03-05-2014 05:27 PM

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)) { 



All times are GMT -8. The time now is 11:51 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.