Hook on order creation. Closes #2438.