Skip to content

Commit

Permalink
Fix 264
Browse files Browse the repository at this point in the history
In this commit, I have fixed the same. fix #264
  • Loading branch information
kartikparmar committed Jan 3, 2025
1 parent 0c71c33 commit f36b90a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions includes/class-alg-wc-order-fees.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,11 @@ public function update_checkout_fees_ajax() {
}
if ( $add_fees ) {
$this->add_gateways_fees( $order, $payment_method );

// Update payment method record in the database.
update_post_meta( $order_id, '_payment_method', $payment_method );
update_post_meta( $order_id, '_payment_method_title', $payment_method_title );
$order->set_payment_method( $payment_method );
$order->set_payment_method_title( $payment_method_title );
$order->save();
}

// Declare $order again to fetch updates to post meta and serve to payment templte engine.
Expand Down

0 comments on commit f36b90a

Please sign in to comment.