Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,873
    Plugin Contributions
    96

    Default Timeout on checkout shipping/payment address page redirects to shopping cart with FEC

    Running 1.38a+security+FEC.

    I've been fussing with the formatting/styling of the checkout screens and found that if I leave either the checkout_shipping_address or checkout_payment_address pages 'untended' for too long, I'm logged off and redirected to the shopping cart page. All the other checkout-related pages, in this case, redirect to time_out.

    Here's the current code from \includes\modules\pages\checkout_payment_address\header.php (same code's in the checkout_shipping_address directory):
    Code:
    // if there is nothing in the customers cart, redirect them to the shopping cart page
    if ($_SESSION['cart']->count_contents() <= 0) {
      zen_redirect(zen_href_link(FILENAME_SHOPPING_CART));
    }
    I'm thinking this should be changed to:
    Code:
    // if there is nothing in the customers cart, redirect them to the shopping cart page
    if ($_SESSION['cart']->count_contents() <= 0) {
      zen_redirect(zen_href_link(FILENAME_TIME_OUT));
    }

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,873
    Plugin Contributions
    96

    Default time_out page form sets action to login page?

    In both 1.38a and 1.39a, the default tpl_time_out_default.php file has this:

    Code:
    <div id="timeoutDefaultContent" class="content"><?php echo TEXT_INFORMATION; ?></div>
    <?php echo zen_draw_form('login', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?>
    to define the form for the page. Shouldn't the form's processing be sent to the time_out page (it's fully capable!):

    Code:
    <div id="timeoutDefaultContent" class="content"><?php echo TEXT_INFORMATION; ?></div>
    <?php echo zen_draw_form('login', zen_href_link(FILENAME_TIME_OUT, 'action=process', 'SSL')); ?>

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: time_out page form sets action to login page?

    Is there a particular problem that that should solve?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,873
    Plugin Contributions
    96

    Default Re: Timeout on checkout shipping/payment address page redirects to shopping cart

    I'm currently using 1.38a with FEC and trying to use a notifier (like you taught me!) to do some special processing for the time_out page and its redirection back to the login page was totally messing that up because FEC was then getting in the way.

 

 

Similar Threads

  1. 1.3.8 too many redirects at checkout when using FEC addon
    By anaxagoras in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 1 Mar 2012, 07:24 PM
  2. Shopping Cart Checkout stuck on Shipping Address
    By roweb2010 in forum General Questions
    Replies: 8
    Last Post: 4 Jan 2011, 02:26 PM
  3. Can't Checkout - Checkout redirects to Shopping Cart Home
    By fmckinnon in forum General Questions
    Replies: 6
    Last Post: 1 Aug 2010, 12:53 AM
  4. Replies: 6
    Last Post: 5 Feb 2008, 12:12 PM

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