Support » Plugin: Advanced Order Export For WooCommerce » Custom Address

  • arinjames08

    (@arinjames08)


    I want the address In one form
    I tried and it was unsuccessful.
    Help me please.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author algol.plus

    (@algolplus)

    Shipping or billing?
    Inside one cell, correct?

    Thread Starter arinjames08

    (@arinjames08)

    Shipping or billing? Ans Both in the same cell.
    Inside one cell, correct? Ans Yes.

    Plugin Author algol.plus

    (@algolplus)

    Hello

    please, follow to https://algolplus.freshdesk.com/support/solutions/articles/25000016635-add-calculated-field-for-order-
    use meta key “full_address” and this code
    edit this code to add extra fields. for example, $order->get_meta(“billing_gad”)
    thanks, Alex

    add_filter('woe_get_order_value_full_address', function ($value,$order, $field) {
    
    if ($order->get_shipping_address_1() == "" )
    $texts = array_filter( array(
    $order->get_billing_address_1(),
    $order->get_billing_address_2(),
    $order->get_billing_city(),
    $order->get_billing_state(),
    $order->get_billing_postcode(),
    ));
    else
    $texts = array_filter( array(
    $order->get_shipping_address_1(),
    $order->get_shipping_address_2(),
    $order->get_shipping_city(),
    $order->get_shipping_state(),
    $order->get_shipping_postcode(),
    ));
    
    return join( ", ", $texts);
    }, 10, 3);
    Thread Starter arinjames08

    (@arinjames08)

    Thank you for code.
    but I tried part of Sub District (Billing) and State Name (Billing) not on form Full address.
    Pic

    and i used code
    add_filter(‘woe_get_order_value_full_address’, function ($value,$order, $field) {

    if ($order->get_shipping_address_1() == “” )
    $texts = array_filter( array(
    $order->get_billing_address_1(),
    $order->get_billing_address_2(),
    $order->get_billing_city(),
    $order->get_billing_sub_district(),
    $order->get_billing_postcode(),
    $order->get_billing_state_full(),
    ));
    else
    $texts = array_filter( array(
    $order->get_shipping_address_1(),
    $order->get_shipping_address_2(),
    $order->get_shipping_city(),
    $order->get_shipping_postcode(),
    ));

    return join( “, “, $texts);

    Plugin Author algol.plus

    (@algolplus)

    You have to adjust my code.

    If you can not do it – please, submit your settings as new ticket to https://algolplus.freshdesk.com/

    use >WooCommerce>Export Orders>Tools to get them

    thanks, Alex

    Thread Starter arinjames08

    (@arinjames08)

    ok. I open new Ticket success

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.