You should be able to look at the store order summary server behavior on your confirm page to get the name of the session variable that holds the id. You can then reference this session variable as the id for the order to update.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.