Title: Checkout address fields customization problem
Last modified: August 31, 2016

---

# Checkout address fields customization problem

 *  Resolved [Syrius00](https://wordpress.org/support/users/syrius00/)
 * (@syrius00)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/checkout-address-fields-customization-problem/)
 * Hello everybody
 * I am developing a e-commerce website (finessi.lu). In the checkout phase, I customize
   the order and the nature of the fields using the ‘woocommerce-checkout-fields’
   filter. When the page loads, the fields are displayed correctly, but after a 
   few moments the fields are refreshed using ajax to the default state. This happens
   for both the shipping and billing fields.
 * How come this happens?
 * Any help would be greatly appreciated.
 * [https://wordpress.org/plugins/woocommerce/](https://wordpress.org/plugins/woocommerce/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Contributor [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * (@mikejolley)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/checkout-address-fields-customization-problem/#post-7023141)
 * Which filter did you use? You’re field changes will be replaced with the country
   locale fields.
 *  Thread Starter [Syrius00](https://wordpress.org/support/users/syrius00/)
 * (@syrius00)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/checkout-address-fields-customization-problem/#post-7023145)
 * Thank you very much for your response! I had an idea that this could be related
   to the locale, but I was not certain.
 * I am hooking to the ‘woocommerce-checkout-fields’ filter right now; how may I
   modify the locale settings for the addresses?
 * Thank you very much for your time and patience 🙂
 *  Plugin Contributor [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * (@mikejolley)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/checkout-address-fields-customization-problem/#post-7023149)
 * woocommerce_billing_fields, woocommerce_shipping_fields
 * [https://docs.woothemes.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/](https://docs.woothemes.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/)
 *  Thread Starter [Syrius00](https://wordpress.org/support/users/syrius00/)
 * (@syrius00)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/checkout-address-fields-customization-problem/#post-7023185)
 * I used the filters you suggested and I could make my adjustments just fine.
 * But the problem persists the moment I try to add the billing_country field. If
   I add the billing_country to the ‘fields’ array using this snippet:
    ` $order['
   billing_country'] = array( 'type' => 'country', 'label' => __('Country', 'woocommerce'),'
   placeholder' => __('Country', 'woocommerce'), 'required' => true, 'class' => 
   array('form-row', 'form-row-wide', 'address-field', 'update_totals_on_change','
   validate-required', 'woocommerce-validated') );  the fields are once again loaded
   correctly and then updated via ajax undoing all my modifications.
 * If I do not add the following field the checkout form is loaded as I would like
   it to be.
 *  Plugin Contributor [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * (@mikejolley)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/checkout-address-fields-customization-problem/#post-7023275)
 * You could customise this one too in that case [https://github.com/woothemes/woocommerce/blob/master/includes/class-wc-countries.php#L585](https://github.com/woothemes/woocommerce/blob/master/includes/class-wc-countries.php#L585)
 *  Thread Starter [Syrius00](https://wordpress.org/support/users/syrius00/)
 * (@syrius00)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/checkout-address-fields-customization-problem/#post-7023307)
 * Thank you Mike, I solved my problem.
 * I had to add a custom function to the default fields filter and then the functions
   I used to manage the ordering worked just fine.
 * Thank you very much for your time and patience, marking the topic as solved.
 *  [sad22](https://wordpress.org/support/users/sad22/)
 * (@sad22)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/checkout-address-fields-customization-problem/#post-8733318)
 * Hello everybody
 * I am developing a e-commerce website (cigar.pk). In the checkout phase,
    I customize
   the order and the nature of the fields using the ‘woocommerce-checkout-fields’
   filter. When the customer complete their order, the order confirmation displayed
   correctly, but after cusmtomer cofirmation the order is sumbit. This happens 
   should be after shipping and billing fields completion.
 * How come this happens?
 * Any help would be greatly appreciated.
 *  [sad22](https://wordpress.org/support/users/sad22/)
 * (@sad22)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/checkout-address-fields-customization-problem/#post-8733338)
 * Hello everybody
 * I am developing a e-commerce website (cigar.pk). In the checkout phase,
 * I want to make this type of checkout form procedures.,,,,,,,,
 * I customize the order and the nature of the fields using the ‘woocommerce-checkout-
   fields’
    filter. When the customer complete their order, the order confirmation
   displayed correctly, but after cusmtomer cofirmation the order is sumbit. This
   happens should be after shipping and billing fields completion.
 * How come this happens?
 * Any help would be greatly appreciated.
 *  [sad22](https://wordpress.org/support/users/sad22/)
 * (@sad22)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/checkout-address-fields-customization-problem/#post-8733372)
 * Hi everybody
 * I developing a e-commerce website (cigar.pk). In the checkout,
 * I want to make the checkout form nature described below!
 * I customize the order and the nature of the fields using the ‘woocommerce-checkout-
   fields’
    filter. When the customer complete their order, the order confirmation
   Page displayed correctly, and after cusmtomer cofirmation the order is sumbit.
   This happens should be after completion orders.
 * How come this happens?

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Checkout address fields customization problem’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [billing](https://wordpress.org/support/topic-tag/billing/)
 * [checkout](https://wordpress.org/support/topic-tag/checkout/)
 * [shipping](https://wordpress.org/support/topic-tag/shipping/)

 * 9 replies
 * 3 participants
 * Last reply from: [sad22](https://wordpress.org/support/users/sad22/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/checkout-address-fields-customization-problem/#post-8733372)
 * Status: resolved