[Venture/Debut Theme] Refreshing Product Available Inventory

3 0 1

Hi All,


On the free Venture theme by Shopify, there's a feature that displays the quantity of inventory or stock available for each product's variant. I've tried adding the code of this feature from the Venture theme to the free Debut theme, and have everything working except for the fact that this element does not refresh when the variant is changed. It currently only updates the available stock if you manually refresh the page.

Can someone tell me what piece of code of the Venture theme is responsible for this element refreshing on variant change? I know it should be javascript that's in theme.js, but I've copied everything relevant over, yet it still doesn't update on my Debut theme.