Cannot see cart page #552

Fix for the issue #552.
When $STOCK > 500 then <select><option> tags are replaced by simple <input> tag of type number, a current value of $QUANTITY and a max value of $STOCK