Posted by giorgio79 on January 23, 2013 at 6:03am
2 followers
Jump to:
| Project: | Drupal Commerce |
| Version: | 7.x-1.x-dev |
| Component: | Price |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed |
Issue Summary
Hello,
Would be more intuitive to enable currencies per field. Currently this is possible only via Store.
This move would enable Price to become less Commerce dependend as well possibly attracting more developers,, and the Commerce team could spin it off into its own module like it did for http://drupal.org/project/addressfield.
Comments
#1
The problem from a Commerce standpoint is that for various reasons, we need to know what currencies are enabled on the store (order total calculation and payment preparation being the prime examples). The price field has a widget that disallows currency selection if you need to restrict it to a single enabled currency on the site. I suppose it wouldn't hurt to be able to restrict the currency to a subset of available currencies, but I'm going to postpone this as a 2.x consideration for now.
#2
I suppose it wouldn't hurt to be able to restrict the currency to a subset of available currenciesOk thx Ryan. Just to recap, the issue is that by default a Price field only has USD enabled, not all currencies. I also cannot select any additional currencies within Price field settings.
Here is what I did: I enabled Commerce Price (also Commerce because it required it) Added Price to a non product node. On node edit I only saw USD as an available field. I had to go to Store to enable additional currencies. I assume this info could be easily queried by the Store from the Price entity on run time, and Price could be decoupled from Commerce to get other devs on board (eg http://drupal.org/project/locale_currency etc.).
#3
For Commerce, though, currency transcends the price field. I can update the Price field to work with a subset of available currencies, but I don't want that module defining and managing currencies as well.
#4
Definitely, there is already a module for currencies :) http://drupal.org/project/currency
#5
fwiw, the Currency module doesn't provide enough metadata for us to properly calculate taxes and order totals, but I'm sure it will continue to develop to support the needs of Xano's Payment module.