Results 1 to 3 of 3

How to hide shopping cart when empty?

This is a discussion on How to hide shopping cart when empty? within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Hi All, I understand that to hide the shopping cart when its empty that I need to add the following ...

      
  1. #1
    Member
    Join Date
    Mar 2007
    Posts
    36
    Rep Power
    0


    Default How to hide shopping cart when empty?

    Hi All,

    I understand that to hide the shopping cart when its empty that I need to add the following code:

    if ($cart->count_contents() > 0) include(DIR_WS_BOXES . 'shopping_cart.php');

    However, I'm not sure which page I need to modify. With the dynamic infoboxes, its not in my column_right.php file.

    Can anyone steer me to the right file?

    Thanks
    Mike

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default Re: How to hide shopping cart when empty?

    You would actually add it to the shopping_cart.php file in the /includes/boxes directory, but you would remove the include and just enclose the entire box in braces.

    PHP Code:
      if ($cart->count_contents() > 0) {

    box contents here

      

    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    Member
    Join Date
    Mar 2007
    Posts
    36
    Rep Power
    0


    Default Re: How to hide shopping cart when empty?

    That worked. Thanks Michael!
    Last edited by mjfontec; 03-21-2007 at 09:01 PM.

Similar Threads

  1. osCmax 2.0, new install empty cart
    By barrowj in forum osCmax v2 Installation issues
    Replies: 7
    Last Post: 06-23-2005, 09:51 AM
  2. shopping cart empty error
    By jasonabc in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 12-18-2004, 11:06 PM
  3. Empty shopping cart after clicking Buy Now Button
    By Walter in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 05-03-2004, 11:02 AM
  4. Empty cart on secure checkout
    By fragzilla in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 09-17-2003, 02:35 PM
  5. Shopping cart won't empty
    By judoka in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 07-14-2003, 02:07 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
  •