How to hide available stock quantity on checkout quantity field

Hi,

The available stock quantity is not being displayed on my entire website. I want to hide the stock quantity from the end-users. However, when the customer changes the quantity on the checkout and if the indicated quantity is more than the actual stock quantity, then the field decreases the quantity to the available stock quantity.

Therefore, end-user sees the available stock quantity on the checkout page if enters more quantity into the field. (The quantity field shows the available stock quantity.)

What I would like to do is not the decrease the quantity to the available stock quantity. It would be better if the field displays 1 instead of showing the stock quantity.

Is there anyone who faced with this issue before?

Thanks,

Meltem

cart-template.liquid contains the following code:


                
                  
                  
                

                
                  {{ 'general.accessibility.error' | t }} 
                  {% include 'icon-error' %}
                  
                

              

Could you please tell me how to change it? I tried to change it a little but did not work it out.

Thanks.