• Resolved notlarangi

    (@notlarangi)


    The woocommerce checkout block automaticaly chooses the state of California as the default state and USA as the default country for new clients and that causes some clients to forget to put their actual state and country, if those fields were blank as default for new clients then those mistakes would not happen and we would not have to email the customer everytime there is a mistake in the adress.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Niels Lange

    (@nielslange)

    Hello @notlarangi ??

    The default values United States (US) and Californa are actually coming from the WooCommerce plugin, not the WooCommerce Blocks plugin.

    That said, you can empty the default values by adding the following code snippet to your site using the Code Snippets plugin:

    
    // Empty country and state on checkout page by default.
    add_filter( 'default_checkout_billing_country', '__return_null' );
    add_filter( 'default_checkout_billing_state', '__return_null' );
    
    • This reply was modified 3 years, 2 months ago by Niels Lange.
    • This reply was modified 3 years, 2 months ago by Niels Lange.
Viewing 1 replies (of 1 total)
  • The topic ‘Problem with checkout block’ is closed to new replies.