• super4tw

    (@super4tw)


    I have two queries:
    1) I want to concatenate two fields e.g. billing Last Name First Name, how could i do that?
    because i use full name : First Name Last Name (The opposite of)

    2) I want to concatenate three fields e.g. billing_state billing_city billing_address1

    Thank you so much.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter super4tw

    (@super4tw)

    The first problem, I found a method on your website, it has been solved

    add_filter(‘woe_get_order_value_billing_full_name’,function ($value, $order,$fieldname) {
    return $order->get_billing_last_name().$order->get_billing_first_name();
    },10,3);

    Please help to solve the 2nd problem

    Thread Starter super4tw

    (@super4tw)

    The 2nd problem, I found a method on your website, it has been solved

    Thank you so much.

    Thread Starter super4tw

    (@super4tw)

    if payment method = cheque
    Output Order Total Amount

    Other Payment Methods Output Order Total Amount=0

    Below is my code, don’t know where is the error

    add_filter(‘woe_get_order_value_cheque_amount’, function ($value, $order, $fieldname) {
    if( $order->payment_method == “cheque”)
    $value = $order->get_total();
    else
    $value = 0;
    return $value;
    }, 10, 3);

    Plugin Author algol.plus

    (@algolplus)

    Hello

    Have you added new column “cheque_amount” as described at https://docs.algolplus.com/algol_order_export/fields/ ?

    thanks, Alex

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Concatenate fields’ is closed to new replies.