Add preference for automatically restocking returned items
Fixes #5188
Don't allow adding products to order if it's already shipped.