Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default country in countries list - Usability #17

Open
zikzakmedia opened this issue Jul 4, 2013 · 1 comment
Open

Default country in countries list - Usability #17

zikzakmedia opened this issue Jul 4, 2013 · 1 comment

Comments

@zikzakmedia
Copy link

Countries field options values are from countries in website and order alphabetical.

In real site (not bigger), a lot of users-customers connections is same country that site. For example, if my site is in Spain, a lot of customers are from Spain. A few customers from other countries

If my site are configurate to available countries Belgium, France and Spain. In this case, Spain is last option and a lot of customers selected this option.

When add a new address in Nereid App, I need everytime to select last option. It's not usability in this site.

We develop a feature to add a default country: https://github.com/zikzakmedia/trytond-nereid/commit/932f01ab4c510414edb2559741bcee7e97e8b71a

In Nereid website options, you select countries available and optional. Now, you could get a new field: default country. This country is a selected option in countries selection (default).

We add a new method get_default_country. You could overwrite this method and get default country, for example, by GeoIP.

@sharoonthomas
Copy link

For future, it would be best if you could send pull request and then we could discuss on that. This would work like a code review as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant