hi
thank you for the feedback.
ok, I’ll add field “City, State, Zip” in next update.
If you need it now – I can provide custom code.
But I have to know exact error message.
Could you press “Save Settings” and check javascript errors?
Learn more
Do you have access to webserver logs? Probably via ftp or cpanel ?
thanks, Alex
-
This reply was modified 8 years, 5 months ago by
algol.plus.
Following code adds 2 new fields
// add field "City State Zip"
add_filter('woe_get_order_fields', function ($fields) {
$fields['billing_citystatezip'] = array( 'label' => 'City, State, Zip (Billing)', 'colname' => 'City, State, Zip (Billing)', 'checked' => 1 );
$fields['shipping_citystatezip'] = array( 'label' => 'City, State, Zip (Shipping)', 'colname' => 'City, State, Zip (Shipping)', 'checked' => 1 );
return $fields;
});
// calculate new field
add_filter('woe_get_order_value_billing_citystatezip', function ($value,$order, $field) {
$texts = array_filter( array(
$order->get_billing_city(),
$order->get_billing_state(),
$order->get_billing_postcode(),
));
return join( ", ", $texts);
}, 10, 3);
// calculate new field
add_filter('woe_get_order_value_shipping_citystatezip', function ($value,$order, $field) {
$texts = array_filter( array(
$order->get_shipping_city(),
$order->get_shipping_state(),
$order->get_shipping_postcode(),
));
return join( ", ", $texts);
}, 10, 3);
Hi
Could you try to update the plugin ?
Code for button “Save Settings” was modified a bit.
thanks, Alex