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
Feature to provide mostly used countries in top section of Country select list #19025
Feature to provide mostly used countries in top section of Country select list #19025
Conversation
(Standard links)
|
settings/Localization.setting.php
Outdated
], | ||
'default' => [], | ||
'add' => '5.31', | ||
'title' => ts('Favourite Countries'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's spelled as "Favourite" here in the title then there's no way for the traunslatioun systeum to output a US spelling.
Or another option is use a word like "Pinned". Or it's a bit long but "Countries Pinned to Top of Selection Lists" is accurate.
Also the add
would currently be 5.33.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@demeritcowboy , i changed label to Pinned Countries
and corrected version too.
@sunilpawar style issue |
I have a couple other |
I like the idea, but it should have a unit test and I don't think it would be hard to write. Also some
|
@demeritcowboy Added Test case and other changes you suggested |
Thanks! Looks good to me. |
@demeritcowboy you are happy for this to be merged now? |
Yes. |
Done - thanks @sunilpawar @demeritcowboy |
Overview
Functionality to provide mostly used (Favourite) countries in top section after default country. So user don't have type to search country name again.
Before
After
Billing form and contact address both will have mostly used countries in top section.