i'm working my way thru the shopping cart tutorial...in video 7, 12:13 minutes in...i've just completed the code for $quantity:
><?php
$product_id = $_REQUEST['id'];
if (product_exists($product_id)) {
$shopping_cart->AddItem($product_id);
}
?>
</pre>
<table>Product IDQuantityAmount
$product_id
$quantity
$ amount
</table>
<br><br><?php set_shopping_cart($shopping_cart);<br><br
in the video, when he refreshes the page, the item quantity goes up 1 as expected...when i refresh my page, the item quantity goes up by 2 each time...not good...
i've compared my code with the code base and don't see an error...in my first attempt, i continued on with the videos, hoping the issue would resolve, but it didn't...so, i scrapped that code and started again from scratch, with the same result...checked the code again and i'm still not seeing an error...any thoughts as to what might be the cause?