Forums / General Questions / Need to make shopping cart basket the page that shows after you log in.

Need to make shopping cart basket the page that shows after you log in.

Locked

Started by sentinelo on 30 May 2006, 4:22 PM · Views: 2,046

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
30 May 2006, 4:22 PM
#1
sentinelo avatar

sentinelo

New Zenner

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

Need to make shopping cart basket the page that shows after you log in.

I would like to make it so that once a customer logs into their account it takes them right to the shopping cart basketm instead of the page that says "Hello customer777! Would you like to see our newest additions?"

Could someone please direct me to the file that needs to be changed and tell me what line needs to be changed to what.

Thank you for any help.

30 May 2006, 5:03 PM
#2
bunyip avatar

bunyip

Totally Zenned

Join Date:
Sep 2004
Location:
Western Massachusetts
Posts:
2,361
Plugin Contributions:
1

Re: Need to make shopping cart basket the page that shows after you log in.

includes/modules/pages/login/header_php.php

change this code (lines 95-105 in v1.3.0.1)```
if (sizeof($_SESSION['navigation']->snapshot) > 0) {
// $back = sizeof($_SESSION['navigation']->path)-2;
//if (isset($_SESSION['navigation']->path[$back]['page'])) {
// if (sizeof($_SESSION['navigation']->path)-2 > 0) {
$origin_href = zen_href_link($_SESSION['navigation']->snapshot['page'], zen_array_to_string($_SESSION['navigation']->snapshot['get'], array(zen_session_name())), $_SESSION['navigation']->snapshot['mode']);
// $origin_href = zen_back_link_only(true);
$_SESSION['navigation']->clear_snapshot();
zen_redirect($origin_href);
} else {
zen_redirect(zen_href_link(FILENAME_DEFAULT));
}

    zen_redirect(zen_href_link(FILENAME_SHOPPING_CART));

Neville
An assumption is what you arrive at when you get tired of thinking...

30 May 2006, 5:16 PM
#3
sentinelo avatar

sentinelo

New Zenner

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

Re: Need to make shopping cart basket the page that shows after you log in.

Thank you Bunyip that worked great. Would you by chance know where I can change the link of the continue button on the logoff page? I need to change it to point to the root of my site.

Thank you so much.

30 May 2006, 5:45 PM
#4
bunyip avatar

bunyip

Totally Zenned

Join Date:
Sep 2004
Location:
Western Massachusetts
Posts:
2,361
Plugin Contributions:
1

Re: Need to make shopping cart basket the page that shows after you log in.

You're obviously running an earlier version of the cart - there is no continue button on the logoff page in the latest version.

I'm sure you'll find it in the tpl_logoff_default.php template file

Neville
An assumption is what you arrive at when you get tired of thinking...