RE: Shopping cart

burt <[email protected]> 12 Sep 2003 15:04:07 -0000
Newsgroups gmane.comp.web.oscommerce.general
Message-ID <58b8aad6b1bce070c87f54f2694166e8@osCommerce-Forums>
This message was sent from: General Support
http://forums.oscommerce.com/viewtopic.php?p=228421#228421
----------------------------------------------------------------

Although Lindas solution will work perfectly for most Shop Owners, there are some who sell less than a quantity of "1".  eg lengths of wire or rope (one of my customers is in this position (he sells half lengths of pipe))...

So, a slightly more "all round" solution would be to go:

[code]
  if ($cart->count_contents() != 0) { 
    require(DIR_WS_BOXES . 'shopping_cart.php'); 
  }
[/code]

As I say, it is almost exactly the same, but will deal with quantities less than "1".

hth.