Hello everybody. I have a little question. I want ...
# support
b
Hello everybody. I have a little question. I want to change, in the billing address form, the preselected country (United States of America) to France...
✅ 1
But I dont know how to do it. Thanks in advance.
I want to change the selected option from 233 to 75
But. I don't know how to change it...
You can set this preference to the ISO of the country you want to be used as the default in your Solidus initializer. If you are not sure how to do that, you can see the guides here https://guides.solidus.io/getting-started/installing-solidus#first-time-configuration
Keep in mind this will affect all forms where the country select shows.
b
Thanks @Chris Todorov. I'll read the guides.
Done. I've added
config.default_country_iso = "FR"
to the
config/initializers/spree.rb
file...
...and it works fine. 🎯 😀 Thanks a lot @Chris Todorov.
🎉 2
c
Glad that worked for you!