Updates to hook_order

hook_order calls needed to be limited and order save only called if a
gift card code was generated.