Skip to content

Commit

Permalink
Merge pull request #169 from TycheSoftwares/refix-167
Browse files Browse the repository at this point in the history
ReFix #167
  • Loading branch information
mital-tyche authored Jul 4, 2023
2 parents bf0f7da + 58ee8da commit def9cf8
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 def9cf8

Please sign in to comment.