Title: Payment method
Last modified: December 14, 2020

---

# Payment method

 *  [egyufo](https://wordpress.org/support/users/egyufo/)
 * (@egyufo)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/payment-method-26/)
 * Hello!
 * Can you help me with a custom code?
 * I need this if it possible:
 * if PAYMENT METHOD is COD -> then -> “Utanvet” row = Order Total Amount.
 * And if PAYMENT METHOD is not COD -> then -> “Utanvet” row = Empty
 * Thanks!
    -  This topic was modified 5 years, 6 months ago by [egyufo](https://wordpress.org/support/users/egyufo/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/payment-method-26/#post-13787330)
 * Hi ,
    ​ you can add “Order Total” to export and use this code​ ​
 *     ```
       add_filter('woe_get_order_value_order_total', function ($value, $order, $fieldname) {
       if( $order->get_payment_method() != "cod")
          $value = 0;
       return $value;
       }, 10, 3);
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Payment method’ is closed to new replies.

 * ![](https://ps.w.org/woo-order-export-lite/assets/icon-256x256.png?rev=1365554)
 * [Advanced Order Export For WooCommerce](https://wordpress.org/plugins/woo-order-export-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-order-export-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-order-export-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-order-export-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-order-export-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-order-export-lite/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [algol.plus](https://wordpress.org/support/users/algolplus/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/payment-method-26/#post-13787330)
 * Status: not resolved