diff --git a/includes/admin/post-types/meta-boxes/class-wc-meta-box-order-items.php b/includes/admin/post-types/meta-boxes/class-wc-meta-box-order-items.php index 3fc27991967..7df9a073c36 100644 --- a/includes/admin/post-types/meta-boxes/class-wc-meta-box-order-items.php +++ b/includes/admin/post-types/meta-boxes/class-wc-meta-box-order-items.php @@ -134,8 +134,8 @@ class WC_Meta_Box_Order_Items { if ( isset( $order_item_qty[ $item_id ] ) ) woocommerce_update_order_item_meta( $item_id, '_qty', apply_filters( 'woocommerce_stock_amount', $order_item_qty[ $item_id ] ) ); - if ( isset( $item_tax_class[ $item_id ] ) ) - woocommerce_update_order_item_meta( $item_id, '_tax_class', woocommerce_clean( $item_tax_class[ $item_id ] ) ); + if ( isset( $order_item_tax_class[ $item_id ] ) ) + woocommerce_update_order_item_meta( $item_id, '_tax_class', woocommerce_clean( $order_item_tax_class[ $item_id ] ) ); if ( isset( $line_subtotal[ $item_id ] ) ) { woocommerce_update_order_item_meta( $item_id, '_line_subtotal', woocommerce_format_decimal( $line_subtotal[ $item_id ], false ) );