Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
As a user editing/adding a store, when adding multiple supported billing countries, I have to hold on Ctrl, scroll, and click on the ones I want to add. This is not very intuitive for a regular user and can get cumbersome when adding more than 2-3 countries. It is also hard to keep track of which countries you had already selected as the list is rather long and the box rather small.
Proposed resolution
Instead of requiring user to Ctrl+click to add new countries, user should be able to search and add using something like this: https://select2.github.io/examples.html
Comment | File | Size | Author |
---|---|---|---|
#3 | countries.png | 15.85 KB | rigids |
#3 | ux_billing_countries_1.patch | 83.33 KB | rigids |
Comments
Comment #2
rigids CreditAttribution: rigids commentedComment #3
rigids CreditAttribution: rigids commentedAdded patch
Comment #4
mglamanThere's a few problems here. Specifically that this UX should be solved by the Drupal admin theme.
The license is not GPL.
https://github.com/select2/select2/blob/master/LICENSE.md
Comment #5
bojanz CreditAttribution: bojanz at Centarro commentedEven if it was GPL, you can't commit code that you don't own into a module.
select2 is for a theme or a distribution, there's nothing Commerce can do here.
Comment #6
rigids CreditAttribution: rigids commentedDo I need to create a PR for this ?
Comment #7
gauravjeet CreditAttribution: gauravjeet as a volunteer and at Acro Commerce commentedOr for better usability and UX, Commerce can support select2. If the library is installed, it will work, else revert back to Drupal element.
Comment #8
mglamanRE: #7: that adds additional code to maintain.