Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2007
    Location
    Texas, USA
    Posts
    1,400
    Plugin Contributions
    1

    Default 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

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

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

  3. #3
    Join Date
    Jun 2007
    Location
    Texas, USA
    Posts
    1,400
    Plugin Contributions
    1

    help question How do determine if items in cart from the product information page

    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

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: How do determine if items in cart from the product information page

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

    Code:
    <?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.

 

 

Similar Threads

  1. v151 MYSTERY: "Checkout" option available, even with empty cart!
    By Feznizzle in forum General Questions
    Replies: 2
    Last Post: 23 Oct 2013, 08:08 PM
  2. Replies: 5
    Last Post: 21 Apr 2013, 11:37 PM
  3. v139h SOLVED: When clicking "Add to Cart", message shows "Your Shopping Cart is Empty"
    By bryanearl in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 14 Nov 2012, 05:22 PM
  4. Stumped trying to move "Your Cart is Empty" beside "Create Account"
    By sophie666 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 Feb 2012, 12:02 AM
  5. Replies: 16
    Last Post: 21 Apr 2010, 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