I want to set the maximum number of stock available items on Woocommerce shop pages. I am using Display the stock availability for all product types in Woocommerce archive pages answer code, which does a great job, showing the available stock for variations in a Woocommerce shop. But I want to show a maximum number, say 50, if the stock