And I've got the weirdest thing. Look at this:
Code: Select all
$current = 0;
foreach($_SESSION['cart'] as $cartItem)
{
echo $cartItem['qty']." ".$_SESSION['cart'][$current]['qty'];
$current++;
}I'm getting different values. I set it up so that deleting an item simply sets its quantity to zero, and ignores those items. Inefficient, I know, but unset() wasn't working properly. Now this isn't either.
Both methods worked sometimes, but not always. There's got to be a reason for this.