I have a product with a number of variants. Each variant has a set inventory level. I want to show the inventory level for the particular variant selected.
I followed some advice here (Ryan64's post)which got me to the stage where the variant inventory is displayed, but it doesn't update when a new option is selected. To do that I need to refresh the page.
I've incorporated simple workaround for now - asking visitors to click a link to refresh the inventory, but it's not ideal.
<a onclick="window.location.reload()" href="">Click to refresh availability based on selection below</a>
Is there a way to have the page refresh, or just the inventory update when a new variant is selected?
Here's a link to what I have so far (password: testing)