Title: Issue with checkout
Last modified: May 15, 2020

---

# Issue with checkout

 *  Resolved [wayneg03](https://wordpress.org/support/users/wayneg03/)
 * (@wayneg03)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/issue-with-checkout/)
 * I have used this code as a workaround for a checkout page bug that prevents shipping
   being calculated until a county is entered.
 *     ```
       add_filter( 'woocommerce_get_country_locale', 'mp_change_locale_field_defaults');
   
       function mp_change_locale_field_defaults($countries) {
           $countries['GB']['state']['required'] = true;
           return $countries;
       }
       ```
   
 * however when i change the country from uk to germany/france etc this field shows
   its label but no text box.
 * This makes payment progression impossible.
 * please help, this is a project ending issue.
    -  This topic was modified 6 years, 1 month ago by [Yui](https://wordpress.org/support/users/fierevere/).
    -  This topic was modified 6 years, 1 month ago by [Yui](https://wordpress.org/support/users/fierevere/).
      Reason: please use CODE button for code formatting

Viewing 1 replies (of 1 total)

 *  [Peter Lawrenson](https://wordpress.org/support/users/lorro/)
 * (@lorro)
 * [6 years ago](https://wordpress.org/support/topic/issue-with-checkout/#post-12866877)
 * The thing is that generally the country is needed to be able to calulate shipping,
   so its not a bug.
 * There’s a setting for the default customer location. You could set this to Geolocation.
   WC will know what country the user is probably in and shipping should be right
   most of the time. It will be corrected on checkout if the customer enters a different
   country.

Viewing 1 replies (of 1 total)

The topic ‘Issue with checkout’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Peter Lawrenson](https://wordpress.org/support/users/lorro/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/issue-with-checkout/#post-12866877)
 * Status: resolved