nice hack -- it duplicates the stock message (exact quantity / out of stock / in-stock - the one normally shown among product details down the page) additionally to the top: just under the price tag before the amounts to order.
i think the file to edit was actually ./storefront/view/default_html5/template/pages/product/product.tpl (if html5 template was/is used , the one mentioned was for the default html template)
personally, i prefer to add/edit the
*** text explanation (the one shown in
bold red when you order more than the stock), using the System > Localisation > Language Definitions ("error_stock" key for the "checkout_cart" block) , just search by *** in the text field there
(you can even use html hypertext syntax there, add your phone number, etc)
that we can put a negative number into the quantity box is a funny fact
but it doesn't hurt anything cause it gets transformed correctly into a positive in the next ordering screen alright...
To abantecart team:
IMO- Ideally, if *** situation occurs, the (checkout/cart) order screen could be made to show actual product availability somewhere, maybe in the *** error_stock message itself, or default the ordered quantity number to the number in stock and explain (if you don't use the pre-orders), or have some other convenient way to correct ordered amounts without having to go back to the product description page.... Because currently, all you can do is to enter new quantity number BY GUESS and press the 'Refresh' -- you may not know the number in stock without leaving that page (or opening extra tab) and checking the product details again... The need for the Refresh button itself in the rt=checkout/cart screen always felt like an overly complex idea, at least for me