Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2013
    Posts
    104
    Plugin Contributions
    0

    Default My "shopping cart" and "checkout" are hidden when the shopping cart is empty.

    The tags of "shopping cart" and "checkout" are hidden when the shopping cart is empty. And they appear after adding some stuff to shopping cart. How can I cancel that function. The link: www.moimoii.com

    Thanks

  2. #2
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Why "shopping cart" and "checkout" are hidden when the shopping cart is empty.

    in:
    /includes/templates/YOUR_TEMPLATE_NAME/common/tpl_header.php

    if that file does not exist, copy it from:
    /includes/templates/template_default/common

    find:
    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  }?>
    replace it with:
    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 
    /**
    }
     */
    ?>

  3. #3
    Join Date
    Dec 2010
    Location
    UK
    Posts
    1,771
    Plugin Contributions
    3

    Default Re: Why "shopping cart" and "checkout" are hidden when the shopping cart is empty.

    Hi again fanisme. have you viewed site on amy mobile devices, what's with the background?

  4. #4
    Join Date
    Feb 2013
    Posts
    104
    Plugin Contributions
    0

    Default Re: Why "shopping cart" and "checkout" are hidden when the shopping cart is empty.

    Quote Originally Posted by rbarbour View Post
    in:
    /includes/templates/YOUR_TEMPLATE_NAME/common/tpl_header.php

    if that file does not exist, copy it from:
    /includes/templates/template_default/common

    find:
    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  }?>
    replace it with:
    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 
    /**
    }
     */
    ?>
    It's done. Thank you a lots.

  5. #5
    Join Date
    Feb 2013
    Posts
    104
    Plugin Contributions
    0

    Default Re: Why "shopping cart" and "checkout" are hidden when the shopping cart is empty.

    Quote Originally Posted by picandnix View Post
    Hi again fanisme. have you viewed site on amy mobile devices, what's with the background?
    Yes, I viewed on mobile divice. The background is pure white. Please tell me if you see anything wrong. Thanks

  6. #6
    Join Date
    Feb 2010
    Location
    Syracuse, NY
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Why "shopping cart" and "checkout" are hidden when the shopping cart is empty.

    Quote Originally Posted by fanisme View Post
    It's done. Thank you a lots.
    np, glad that worked for you!

 

 

Similar Threads

  1. v138a There are two "my account" and "shopping cart", how to delete one?
    By fanisme in forum General Questions
    Replies: 1
    Last Post: 16 Mar 2013, 11:43 AM
  2. 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
  3. "Add to cart" problem: "Your Shopping Cart Is Empty"
    By weber in forum General Questions
    Replies: 2
    Last Post: 20 Nov 2011, 08:57 PM
  4. Shopping cart - trying to turn off "Total Items" "Weight" and "Price"
    By deshojo in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 4 Apr 2011, 07:15 PM
  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