I am using Woocommerce for a site where there is just one payment method - credit card. However, we offer the customer different options,such as pay in full, pay in 4 payments, etc. All of that works fine - I store the # of payments in a session variable. I need to modify the payment method text (currently it just says "Via Credit Card") in the Admin order screen.
I tried this in
if($_SESSION['payments'] == '4') add_post_meta( $order->id, '_payment_method_title', ' Via Credit Card with 4 Equal Payments');
But this didn't work. Session variable $_SESSION['payments']
is already cleared out at this point...the order is complete.
How can I modify the order meta data so that it shows in the order how many payments the customer wants? I create a solution using this code but it places the custom description with each item, not with the payment description for the order.