Hi Everyone,
I am using Magento and PHP to create a script that updates inventory. I have the code where it reads from a file and prints out the inventory. My issue is I can't figure out how to get it to update automatically when someone makes a purchase that item would be removed and the amount would then be changed. Any help is appreciated and thank you in advance.

