Oh, it is treating count a string, not an integer. Try:
$cart = $_SESSION['wfcart'];
$count=0;
foreach($cart->items as $item){
$count+= intval($cart->itemqtys[$item]);
}
echo $count;
Oh, it is treating count a string, not an integer. Try:
$cart = $_SESSION['wfcart'];
$count=0;
foreach($cart->items as $item){
$count+= intval($cart->itemqtys[$item]);
}
echo $count;