I think it's something like..
<?php
$items = count(uc_cart_get_contents());
?>I'd say make a conditional to return a message instead of 0.
<?php
if ($items > 0) {
$output = "You have ".$items." items in your cart.";
} else {
$output = "Nothing in your cart!";
}
print $output;
?>


Joined: 08/14/2007