Wednesday, November 11, 2009

Zen Cart after login go to cart or redirect to another page

To change the redirect location in Zen Cart after the user logs in, look for the following file:

"includes/languages/english/login.php"

Then search for the appropriate calls to "zen_redirect" and change to:

zen_redirect(zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'));

3 comments:

  1. This is close but incorrect. The spot for redirecting to, say, an EzPage is in the modules/pages/login/header_php.php section near line 138.

    E.g.:
    zen_redirect(zen_href_link(FILENAME_EZPAGES, 'id=1', $request_type));

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. cool. thanks nick. i always appreciate these tips.

    ReplyDelete