Show the remaining inventory of a variant on product pages
You can add a message on the product page or featured product section that shows the number of items you have in stock when inventory runs low on a product variant. For this message to show, you need to enable inventory tracking for the product.
The steps for this customization vary depending on your theme. Click the button for your theme and follow the instructions.