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)
-   -   Redirect Customer after Login to a help page (https://forum.x-cart.com/showthread.php?t=4564)

MOC 09-30-2003 08:50 PM

Redirect Customer after Login to a help page
 
Hi,

i have designed a special customer menu for my registred users (help.php?section=loggedin) . If a customer logs in (to check the orderstatus whatever) how can i redirect him to this help page and not the Frontpage (home.php) of the shop ?

Saskia :?: :D

funkydunk 09-30-2003 10:09 PM

If you change:

Code:

if ($login_type=="C") {
                        if(!func_is_cart_empty($cart))
                                func_header_location("../$redirect/cart.php");
                        else
                                func_header_location("../$redirect/home.php");
                }


in include/login.php

to

Code:

if ($login_type=="C") {
                        if(!func_is_cart_empty($cart))
                                func_header_location("../$redirect/cart.php");
                        else
                                func_header_location("../$redirect/help.php");
                }


Assuming your help menu is based on the help.php page.

This will direct them there if their cart is empty.

MOC 10-01-2003 06:06 AM

Thanks Funkydunk,
works great !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Saskia :D :!:

funkydunk 10-01-2003 06:12 AM

my pleasure 8)


All times are GMT -8. The time now is 09:19 PM.

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