• Resolved davidhaviland

    (@davidhaviland)


    Hi,

    My website is http://www.themysterybookclub.co.uk

    All our customers are in the UK, but a recent update seems to have changed the payment default settings, so all orders are automatically set up to request the customer’s address in the US format, with a US flag. Obviously, this is a big problem.

    How can I amend Woocommerce so that every payment option, and stage of checkout, defaults automatically to the UK format?

    Many thanks,
    David

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support abwaita a11n

    (@abwaita)

    Hi @davidhaviland,

    On my test site with the latest WooCommerce version, when I set the default selling country to UK (via sell to specific countries at WooCommerce → General), I get the expected UK fields during checkout. Thus, it could be that some custom code or another tool is causing the issue on your site.

    I would suggest that you start with a conflict test as explained here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    * You will want to comment out or disable custom code during the test.

    Let us know how it goes.
    Thanks.

    Thread Starter davidhaviland

    (@davidhaviland)

    Hi Abwaita,

    Thanks for this, but I don’t think the issue is at checkout. There are now links to go straight to payment on the product page, and when you click on the ‘Debit/Credit Card’ button, that’s when it defaults to a US address format.

    Best,
    David

    Plugin Support Dani F. a11n

    (@danielinhou)

    Hi there @davidhaviland 👋🏽

    If I am getting this right you are referring to the PayPal buttons added by a PayPal extension to your product pages. If those buttons are coming from the PayPal Express Checkout extension you could use the snippet of code below to set the locale to UK:

    add_filter( 'woocommerce_paypal_express_checkout_sdk_script_args', function( $settings ) {
    	$settings['locale'] = 'en_GB';
    	return $settings;
    } );

    As note in our Customizing WooCommerce best practices article you could add that snippet of code to your site using the free Code Snippets plugin

    Please give it try and let us know if that worked for you.

    Cheers!

    Thread Starter davidhaviland

    (@davidhaviland)

    Hi Dani,

    Many thanks for this. It looks like it did the trick. Much appreciated.

    Best,
    David

    Plugin Support abwaita a11n

    (@abwaita)

    Glad to hear it – thanks for letting us know!

    I’ll mark this thread as resolved now. If you have any further questions, I recommend creating a new thread.

    Cheers!

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

The topic ‘Default location’ is closed to new replies.