Okay, so I've noticed that when you delete an order there is the little checkbox that lets you restock the items from the order and that is extremely useful. That little option has got me thinking. I do a LOT of drop shipping since it is often cheaper that way for larger/heavier orders or for items I don't have enough of. So that leaves me with manually updating my store's inventory each day for all the items. Sometimes this can be dozens of items in a single day and can take quite some time. I've resorted to just doing it through SQL queries from the reports I get from my distributor which saves time but still takes a lot of time and I only do it once per day. Anyway, that's the back story...

My question is, does anyone know of a good way I could place a little button on the admin orders page that would allow me to restock all the items in that order just like it does when you delete an order? I'm comfortable with php and sql but am nowhere near proficient in it enough to keep from screwing things up on my own...though I will try it myself if nobody has the answer. I was also thinking that maybe I could put a checkbox that has to be checked for the button to actually do anything. Sort of a safety to make sure I am actually intending to restock them and didn't just accidentally click the button.

Anyway, I figure that when I drop ship an order and go in to put the tracking number I can go ahead and click the restock button to update my inventory. If we can get this to work it should save me a bunch of time and also help me keep track of what I can and cannot fill immediately rather than having to go check.

Any help and suggestions would be greatly appreciated.