Shipping or billing?
Inside one cell, correct?
Shipping or billing? Ans Both in the same cell.
Inside one cell, correct? Ans Yes.
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);
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);
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
ok. I open new Ticket success