Support » Plugin: WooCommerce » Woocommerce Checkout country issues

  • Resolved meatface888

    (@meatface888)


    I have been having problems occasionally with people checking out and tax or shipping does not get calculated.

    What I have found is this is related to the Country entry in the checkout form. Right now it prefills CA and if left alone it works fine. If someone types in Canada then it breaks the tax and shipping calculations but still allows the customer to checkout. I am not sure how to fix this and have tried to change this to a drop down list but that also does not work. Putting either CA or Canada in the dropdown selection doesn’t resolve the issue. Woocommerce still does not calculate the tax or shipping and still allows the order to be processed.

    I only sell in Canada at the moment but would like to open internationally in the future but need to resolve this before I can. I think a drop down list would work and prevent any typos.

    Any direction or pointers would be greatly appreciated.

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Cara

    (@dcka)

    Hi, @meatface888!

    If you’re only selling to customers in Canada right now, you can try the following settings in WooCommerce > Settings > General:


    Link to image: https://d.pr/i/aAK03o

    That way, Canada is pre-selected at checkout like so:


    Link to image: https://d.pr/i/OkbnLG

    Thread Starter meatface888

    (@meatface888)

    Hi Cara,
    Thank you for your response.
    I have this configured this way but the field is configurable on the live page. Like people can change it. By default it puts in CA. If changed to Canada the checkout is broken and doesn’t calculate tax or shipping.

    I think some people are using autofill so sometimes CA is changed to Canada when they checkout because of this.

    The Country field doesn’t look like it is editable in your screenshot. How do I prevent this field from being changed?

    On the checkout page I have this configured under Billing fields:
    Country
    Input Label= Country
    Class Name= form-row-wide
    Input Type= Text
    Field Name= billing_country
    Placeholder= Country
    Autocomplete Value= Canada
    Required= Yes

    The Autocomplete Value is set to Canada but in the actual Checkout that’s live it is autofilled as CA and if Canada is typed in it doesn’t work.

    I have also tried changing Input Type to Select and the drop down option with only Canada or CA and neither selections work. The system won’t calculate tax or shipping configured like this.

    • This reply was modified 2 years, 1 month ago by meatface888.
    Plugin Support abwaita a11n

    (@abwaita)

    Hi @meatface888,

    It seems that you’ve modified the checkout fields, which explains why the country field is editable.

    Is it possible to remove the modifications for the Country field and only set the country limitation from WooCommerce > Settings > General as shown in Cara’s screenshot? That way, the field will not be editable.

    Thanks.

    Thread Starter meatface888

    (@meatface888)

    Hi abwaita,
    I see that the in the shipping address the country field is not able to be edited as text and is set as Canada.

    I copied the config from the shipping field as below and put that into the billing country field but the country can still can be edited.
    Country
    Input Label= Country
    Class Name= form-row-wide
    Input Type=
    Field Name= shipping_country
    Placeholder=
    Autocomplete Value= Country
    Required= Yes

    Plugin Support abwaita a11n

    (@abwaita)

    Thanks for getting back.

    To check again, how are you modifying the fields? It seems that you’re using a checkout editor plugin. Note that most of these plugins cannot set a default field, just a placeholder.

    To set a default Billing Country, try using the code here:
    https://www.businessbloomer.com/woocommerce-set-default-state-checkout-page/

    Before doing so, try to remove the existing country field modifications via the checkout editor plugin, especially the placeholder.

    Thanks.

    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hi @meatface888,

    Testing for you on my installations by default the WooCommerce Country field is not editable if you follow the directions provided within the reply from @dcka. It would only display Canada and could not be changed by a customer on the checkout page.

    If you’re finding that the Country field on your site is editable using that configuration that could be due to code you have added to the site or a plugin that is installed.

    Thread Starter meatface888

    (@meatface888)

    Sorry I forgot I use Elementor Pro to build my checkout page.

    I have reached out to them to fix this issue but they don’t seem to want to do anything with it.

    Still trying to convince them to fix their plugin.

    Mirko P.

    (@rainfallnixfig)

    Hi @meatface888,

    Thanks for getting back with more details.

    Since you’re using Elementor Pro to manage the checkout page, please reach out once again to the Elementor Pro support team that is best positioned to help you set the Country field to not editable. While we can provide support on our own product, third-party plugins are best supported by their own support team.

    I’ll go ahead and close this thread now. If you have any further questions on core WooCommerce plugin please feel free to open a new topic.

    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Woocommerce Checkout country issues’ is closed to new replies.