Added isset() checks around $legacy_order, var is only set if 'woocommerce_calc_taxes' option is 'yes'.
Merge pull request #5934 from barrykooij/bugfix/fix-order-metabox-notices

Fix notices, added isset() checks around $legacy_order