Hi, @sersi45:
Sorry for the very late reply! I have away for several months because my work consume almost all my time. Please note that this is a plugin I mantaine in my spare time, but I’m trying to find time slots to improve the plugin.
1 – how to show the city field as a dropdown in the order page [new order and edit order]
Currently, the plugin only offer this behavior for the checkout form, but I will take your suggestion in consideration for a future release. Please open a new issue here, so I can track this enhacement: Open a new issue on GitHub
2- how to move the “State field & Country” before the “City” & “Postcode” fields.
I do not think this has any sence. Please note that, unlike how WooCommerce displays the fields, that are text fields, our plugin goes sorting from upper administrative places to smallest, so the available places are being closed until find the customers city. Switching the state and city fields, will directly affect the user experience.
That said, I just wrote a code snippet for you, so you can change the order of these fields as you want:
/**
* WooCommerce:
* Customize the checkout fields ordering
*/
add_filter('woocommerce_default_address_fields', 'wc_change_checkout_fields_orders', 999 );
function wc_change_checkout_fields_orders( $fields ) {
$fields['city']['priority'] = 70;
$fields['state']['priority'] = 80;
return $fields;
}