stevej Posted March 17, 2004 Share Posted March 17, 2004 I have a client whom has been sold oscommerce (for a lot of money I might add) and am trawling through the code. The developer who put the system online has removed all the comments so it's a bit of a mess. Having never worked on OsCommerce before I have to say I'm impressed, however there is a number of things I need to change. One of them is that the shopping cart always appears regardless of whether it is empty or not. Is there a way I can omit the shopping cart include if the cart is empty? If so how? The best thing about learning is that no-one can take it away from you - B.B.King Link to comment Share on other sites More sharing options...
burt Posted March 17, 2004 Share Posted March 17, 2004 Search the Forum gave me this: http://www.oscommerce.com/forums/index.php?sho...=0entry323368 Basically you just need: if ($cart->count_contents() > 0) { require(DIR_WS_BOXES . 'shopping_cart.php'); } Almost every question you can possibly ask has been asked and answered many times in the past... Link to comment Share on other sites More sharing options...
stevej Posted March 17, 2004 Author Share Posted March 17, 2004 Sorry. I did search a few times but the search system isn't very good. It gave me about 1000 irrelevant results to trawl through. Probably I was searching with the wrong terms but it's not my fault that the forum instructions on searching are as clear as mud. Thanks for the help and the link. Much appreciated. The best thing about learning is that no-one can take it away from you - B.B.King Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.