Tag Archives: oscommerce

HOW TO: show number of products in cart

Shwoing the number of products in osCommerce cart is very simple; echo $cart->count_contents(); This will show the total number of items in a persons cart. You can go further with this and say something like; You have <?php echo $cart->count_contents(); ?> items in your cart. But this will not be grammatically correct if only 1… Read More »