Show stock quantity on product page

Hey there,

I’m trying to show how many products are left in stock on my product page. I tried different methods and tutorials made for other themes and tried to adjust them for cascade, but it never worked out.

Is there a tutorial or a way to do this on cascade? I found a tutorial for the dawn theme that brought me pretty close, but I couldn’t find the correct js file / js tag to make the javascript adjustments.

Here is the link to the tutorial:
https://ed.codes/blog/display-variant-inventory-count-on-product-page-dawn-theme-no-app-shopify-2-0

I would be very grateful if someone could help me out.

thx
vincent