combined shipping address error custom php
-
I’m trying to combine the following shipping details: address 1, house number, house number suffix, postcode, city:
add_filter(‘woe_get_order_value_custom_address’,function ($value, $order,$fieldname) {
$value =
$order->get_shipping_address_1()
. ‘, ‘ .
$order->get_shipping_house_number()
. ‘, ‘ .
$order->get_shipping_house_number_suffix()
. ‘, ‘ .
$order->get_shipping_postcode()
. ‘, ‘ .
$order->get_shipping_city();return $value;
},10,3);I get an error, while it’s working when I only have:
add_filter(‘woe_get_order_value_custom_address’,function ($value, $order,$fieldname) {
$value =
$order->get_shipping_address_1()
. ‘, ‘ .$order->get_shipping_postcode()
. ‘, ‘ .
$order->get_shipping_city();return $value;
},10,3);What is going wrong?
- The topic ‘combined shipping address error custom php’ is closed to new replies.