Okay page is running but selected products are not getting added to the cart. I think I have identified the issue and it relates back to the tutorial and it has to do with the quantity that gets added. My code is
$dmbc_in_stock_itemQuantity = floatval("".((isset($_POST["btnQuantity_".$row_rs_ATC['id']]))?$_POST["btnQuantity_".$row_rs_ATC['id']]:"") ."");
If I change this to
$dmbc_in_stock_itemQuantity = 1;
then 1 of everything I select gets added.
So what shall I set $dmbc_in_stock_itemQuantity to so it adds the correct quantities?