Results 1 to 4 of 4
  1. #1
    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.

  2. #2
    Join Date
    Sep 2004
    Location
    Rocky Mountains, Colorado
    Posts
    2,936
    Plugin Contributions
    5

    Default 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)
    Code:
          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));
          }
    to
    Code:
            zen_redirect(zen_href_link(FILENAME_SHOPPING_CART));
    Neville
    An assumption is what you arrive at when you get tired of thinking...
    www.customcartmods.com

  3. #3
    Join Date
    May 2006
    Posts
    7
    Plugin Contributions
    0

    Default 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.

  4. #4
    Join Date
    Sep 2004
    Location
    Rocky Mountains, Colorado
    Posts
    2,936
    Plugin Contributions
    5

    Default 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...
    www.customcartmods.com

 

 

Similar Threads

  1. Shopping Cart Sidebox Won't Reposition
    By pensive612 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 16 May 2006, 11:48 PM
  2. How do you Add All Products to Empty Shopping Cart Page
    By tinamartinez in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 16 May 2006, 12:59 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •