i been trying to do this but the disable button only works after submiting to the cart maby im doing something wrong, help please this is how i have it on the product or detail page of an item i have the code of itemdetail.php you place there just before
<form name="cart_1_ATC_........
the other one is on where i display the ecart following your instructions.
now it doesnt disable my submit to cart button if im on the page for the first time and after i submit and if i hit continue shoping if i added more than whats in the stock it disables the button but then it is always is disabled unless i clear session variables, how can i get this done the first time? or how can i disable the check out and give a msg that they are adding more than they should?