Can anyone help please.
| From: | Steve Jackson | Date: | Sun, 27 Oct 2002 15:44:37 +0000 |
| Subject: | Can anyone help please. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-121597@lists.php.net to get a copy of this message | ||
I have two test carts online at the moment.
This one works fine:
http://www.violasystems.com/shop/
this one is the one I want to get working
http://www.violasystems.com/shop_testing/
The code for the first shop basically increments the cart by one when the
submit button is added using the commented out code.
$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);
I have added the rest (taking a variable from the form $formqty and adding
it to the cart)
Can anyone see why doesn't this work?