I'd like to display a progress bar widget that on page load displays up to date inventory count as a meter. I have a progress bar widget that contains a field I can update, but I'm not sure how to implement the functions to pull inventory counts. The inventory API is there but I don't think that should go in the template for security reasons. I'm guessing this has to be a server side function?
Any help would be appreciated.