Skip to content

Commit

Permalink
ReFix #167
Browse files Browse the repository at this point in the history
Fixed Bot errors refix #167
  • Loading branch information
mital-tyche committed Jul 4, 2023
1 parent 0b157c5 commit 58ee8da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions includes/class-alg-wc-checkout-fees.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
}
}
}
}
Expand Down

0 comments on commit 58ee8da

Please sign in to comment.