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.
Hi,
When adding a currency (using either hook_commerce_currency_info()
or hook_commerce_currency_info_alter()
), the currencies are not sorted, and it is surprising at first. I'm suggesting to sort them by currency code.
Comment | File | Size | Author |
---|---|---|---|
#2 | commerce_1664166_sort_currencies_by_code_better.patch | 457 bytes | Simon Georges |
#1 | commerce_1664166_sort_currencies_by_code.patch | 450 bytes | Simon Georges |
Comments
Comment #1
Simon Georges CreditAttribution: Simon Georges commentedSimple solution, to start the discussion.
Comment #2
Simon Georges CreditAttribution: Simon Georges commentedOops, real patch.
Comment #3
ArtusamakTested and working for me.
Comment #4
rszrama CreditAttribution: rszrama commentedThanks, committed.