Re: Here's a weird one!
| From: | @ Edwin | Date: | Mon, 28 Oct 2002 04:17:54 +0000 |
| Subject: | Re: Here's a weird one! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-121637@lists.php.net to get a copy of this message | ||
Hello,
I think the problem lies here:
> $qty = $formqty;
> if($cart[$new])
> //$cart[$new]++;
> $cart[$new] = $cart[$new] + $qty;
> else
> $cart[$new] = 1;
> $total_price = calculate_price($cart);
> $items = calculate_items($cart);
> }
It seems like you should be adding the $qty on the "else" part and NOT here:
--> $cart[$new] = $cart[$new] + $qty;
However, I just checked the site and it seems like it's working fine.
I'm using Netscape 7, by the way...
- E