on the cart display page, make sure the quantity is field is not editable.
on the add to cart page, put an if statement around the add to cart button:
<?php if($your_cart_name->TotalColumn("Quantity") == "0") { ?>
add to cart button code here
<?php }?>
this will show the add to cart button on the page only if the cart quantity is 0