• Resolved mf_iii

    (@mf_iii)


    Hello!

    I want to create a new field to have First name and Last name together.

    Thanks

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter mf_iii

    (@mf_iii)

    Thank you!! And one last question:

    How can i remove the price from the price column when the order is paid by card? I mean i want only the price in the price column when the orders are made by COD method. If is paid by card i want the price to be shown in another new column.

    Thanks

    Plugin Author algol.plus

    (@algolplus)

    Hi

    Do you refer to order total ?

    // set total =0, if payment <> COD
    add_filter('woe_get_order_value_order_total', function ($value, $order, $fieldname) {
     if( $order->payment_method != "cod") 
      $value = 0;
     return $value;
    }, 10, 3);
    Thread Starter mf_iii

    (@mf_iii)

    Yes to order total! But how can i show the price in that case near the Item Name field?

    Plugin Author algol.plus

    (@algolplus)

    Hello

    you have to add https://algolplus.freshdesk.com/support/solutions/articles/25000016635-add-calculated-field-for-order-

    use meta key “card_amount” and this code

    add_filter('woe_get_order_value_card_amount', function ($value, $order, $fieldname) {
     if( $order->payment_method === "card")  // EDIT "card" !
      $value = $order->get_total();
     return $value;
    }, 10, 3);

    I have really no time to code scripts for you.
    Alex

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘How can i combine 2 fields as one?’ is closed to new replies.