Forums / General Questions / Can we alter the Login redirect?

Can we alter the Login redirect?

Locked

Views: 784

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
16 Feb 2009, 12:07 AM
#1
malhyp avatar

malhyp

New Zenner

Join Date:
Dec 2008
Posts:
28
Plugin Contributions:
0

Can we alter the Login redirect?

Hi there, if a user buys something from your website, ZenCart creates and account for them. When a user goes back to login into their account, it redirects them to a page which seems to show all categories.

Is it possible to change it so that it goes into their account instead?

9 Jun 2009, 4:32 AM
#2
vertex avatar

vertex

New Zenner

Join Date:
May 2009
Posts:
7
Plugin Contributions:
0

Re: Can we alter the Login redirect?

in the includes/modules/pages/login/header_php.php file.
Look at:
$_SESSION['cart']->restore_contents();
// eof: not require part of contents merge notice

add below:
zen_redirect(zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'));

FILENAME_SHOPPING_CART - name for your shopping cart page.
so you need find one for account
FILENAME_ACCOUNT (may be)

Be sure to make backups before changing things.