Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Code Matters / Bug Reports / Timeout on checkout shipping/payment address page redirects to shopping cart with FEC

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

Locked
This thread is locked. New replies are disabled.
1 Nov 2009, 10:47 AM
#1
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,156
Plugin Contributions:
56

Post #1 by lat9

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):

// 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:

// 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 May 2010, 4:48 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,156
Plugin Contributions:
56

Post #2 by lat9

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

<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!):

<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 May 2010, 5:09 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #3 by drbyte

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.

3 May 2010, 10:12 AM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,156
Plugin Contributions:
56

Post #4 by lat9

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.