Can you only enable a customer to add amount in stock to cart?

New Member
3 0 0

Can you only enable a customer to add the amount in stock to the cart? When a customer uses the quantity button they can add any number to the cart by then when you click enter it then says 'you cannot add cart'. So if for example I have 9 in stock and they add 10 it says the same and therefore they may change the number back to 1. Is there a way for either a restriction to be placed on the amount that can be added to the cart to match the number in stock or a pop-up message that says how many are in stock? I am using debut theme. Thanks in advance. x