Forums / General Questions / Customer goes to "time_out" on "checkout" click with empty cart

Customer goes to "time_out" on "checkout" click with empty cart

Locked

Started by shrimp_gumbo_mmmhhh on 18 Aug 2008, 4:13 PM · Views: 2,701

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
18 Aug 2008, 4:13 PM
#1
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Customer goes to "time_out" on "checkout" click with empty cart

Hello,

The customer is going to the "time_out" page if they are looking at an item but have not put it in their cart and click on the "checkout" link. My thought is that if this were to happen a special page letting the customer know how to add something to their cart or telling them there is nothing in their cart should come up instead of the "time_out" page.

Thank you!

Shrimp-Gumbo-mmmhhh

18 Aug 2008, 4:30 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Customer goes to "time_out" on "checkout" click with empty cart

In a default install of Zen Cart, there is no "checkout" link displayed anywhere if there is nothing in the customer's cart.

Perhaps removing/disabling your custom "checkout" link would get you the same end result of less confusion to the customer?

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

19 Aug 2008, 5:15 AM
#3
shrimp_gumbo_mmmhhh avatar

shrimp_gumbo_mmmhhh

Totally Zenned

Join Date:
Jun 2007
Location:
Texas, USA
Posts:
1,436
Plugin Contributions:
0

Re: Customer goes to "time_out" on "checkout" click with empty cart

Hello,

If anyone could tell me how I can know if there is anything in the customers cart while they are at the product information page I would greatly appreciate it.

Thank you!

Shrimp-Gumbo-mmmhhh

19 Aug 2008, 6:53 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: Customer goes to "time_out" on "checkout" click with empty cart

As I mentioned, there is an example of that in the default template that comes with Zen Cart.
Look in tpl_header.php:

<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
<?php }?>

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