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
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.
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.
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
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.
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.
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.
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.