Problem/Motivation
Following changes in commerce core with adding resolver API 3039854, this module needs to get an overall overhaul.
Proposed resolution
Split current option for resolving (store, cookie, language, geo) each into separate submodule. That way, people could use multiple resolvers.
Remove CommerceCurrencyResolversRefreshTrait, which most likely is not going to be needed.
Remove dependency on commerce_exchanger. Add that integration as a submodule as well.
Remaining tasks
User interface changes
API changes
CurrentCurrency is now resolver based on this patch 3039854
By default the main module follow patterns of current currency being resolved to current store.
Other methods of resolving - language, geo and cookie should be sub-modules with each having it's own resolver and potential mapping if applicable.
The fallback currency is now pulled from default store in the system.
Data model changes
TBD
Issue fork commerce_currency_resolver-3179459
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
valicComment #3
valicComment #4
valicChange to go against new 2.0.x branch
Comment #5
valicComment #7
valicComment #8
valicComment #9
valicComment #10
valicAll the tests are green.
Made a change record draft as well
Comment #13
valicComment #15
valic