osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

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


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 03-21-2007, 07:49 PM
Member
 
Join Date: Mar 2007
Posts: 36
Thanks: 6
Thanked 1 Time in 1 Post
Rep Power: 0
mjfontec is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 03-21-2007, 08:21 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,091
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
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 Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
The Following User Says Thank You to michael_s For This Useful Post:
mjfontec (03-21-2007)
  #3  
Old 03-21-2007, 08:31 PM
Member
 
Join Date: Mar 2007
Posts: 36
Thanks: 6
Thanked 1 Time in 1 Post
Rep Power: 0
mjfontec is on a distinguished road
Default Re: How to hide shopping cart when empty?

That worked. Thanks Michael!

Last edited by mjfontec; 03-21-2007 at 09:01 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
osCmax 2.0, new install empty cart barrowj osCMax v2 Installation issues 7 06-23-2005 09:51 AM
shopping cart empty error jasonabc osCommerce 2.2 Modification Help 1 12-18-2004 11:06 PM
Empty shopping cart after clicking Buy Now Button Walter osCommerce 2.2 Modification Help 0 05-03-2004 11:02 AM
Empty cart on secure checkout fragzilla osCommerce 2.2 Modification Help 3 09-17-2003 02:35 PM
Shopping cart won't empty judoka osCommerce 2.2 Modification Help 2 07-14-2003 02:07 PM


All times are GMT -8. The time now is 03:20 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax