I know how to setup a Magento ecommerce store but I ran into this small issue where the quantity of products I can put in my cart exceeds the number of available stock in the database.
Example scenario; I have Product-X with a qty of 23 in my inventory. When a user views product-X, user has the option to choose buy qty by clicking on an increment(simple 'plus' sign) button. I would like this button to be disable when the qty counter shows 23(stock available in inventory). I can do this in basic PHP by matching with the database, how would you do this in Magento though?
Any help would be much appreciated.