diff --git a/includes/class-alg-wc-checkout-fees.php b/includes/class-alg-wc-checkout-fees.php index bdd848a..bfda277 100644 --- a/includes/class-alg-wc-checkout-fees.php +++ b/includes/class-alg-wc-checkout-fees.php @@ -1093,8 +1093,9 @@ public function add_order_meta_fees( $order_id ) { wc_add_order_item_meta( $item_id, '_last_added_fee', $item->get_name() ); } - if ( '' !== $this->last_fee_added_2 && in_array( $item->get_name(), $this->fees_added_2 ) ) { //phpcs:ignore - wc_add_order_item_meta( $item_id, '_last_added_fee_2', $item->get_name() ); + if ( '' !== $this->last_fee_added_2 && in_array( $item->get_name(), $this->fees_added_2 ) ) { //phpcs:ignore + wc_add_order_item_meta( $item_id, '_last_added_fee_2', $item->get_name() ); + } } } }