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
    Western Massachusetts
    Posts
    2,945
    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...

  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
    Western Massachusetts
    Posts
    2,945
    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...

 

 

Similar Threads

  1. Replies: 1
    Last Post: 18 Aug 2012, 01:39 AM
  2. Adding VAT in shopping basket/ cart contents page
    By Peace74 in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 3
    Last Post: 11 May 2012, 10:56 AM
  3. Help To make a page that shows top 10 or 20?
    By Alexiss in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 1 Oct 2011, 09:20 AM
  4. Replies: 2
    Last Post: 7 Oct 2009, 05:33 AM
  5. I turned off my the page that shows when you add a product?
    By RAM1001 in forum General Questions
    Replies: 1
    Last Post: 23 May 2009, 07:38 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR