Adding an (optional) ability for users, any user who can view that field, to convert the currency on the fly.
Something like: "$340,000.00 (click here to convert)" and then a drop-down could open and ask which currency to convert to. suppling the converted amount on the same page, without a refresh needed (ajax?), would be a big big bonus.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | money_conversion_dialog.png | 3.04 KB | markus_petrux |
| #6 | calculator.gif | 595 bytes | markus_petrux |
Comments
Comment #1
wim leersI've thought about this as well. It's easy to implement, except that I would need some sort of pop-up or bubble thing. If you could do the research for that, I may be able to implement this sooner.
Comment #2
asak commentedWhat about HoverTip ? using a clicktip could work nicely...
Comment #3
wim leersClicktips aren't obvious enough. We'd need some special "convert" marker (like for example the External Links module does. The question mark doesn't communicate the ability to convert the currency.
And this project seems more stable: http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/.
Comment #4
wim leersPostponing. This will be a feature of the Drupal 6 port only: AHAH forms are super easy there, while they're a complete PITA in Drupal 5.
Comment #5
wim leersWon't be implemented in the Drupal 5 version, which is now a bugfix-only branch.
Comment #6
markus_petrux commentedAttached a mini calculator icon that I found at famfamfam silk icons. It could be displayed to the right of the currency symbol, and on mouse over it could display "Click here to convert".
Then, how about a jQuery UI Dialog with buttons and overlay such as the one in this demo.
The dialog could have a currency selection box and invoke Currency API to perform the conversion using Ajax.
Conversion direction would work from the current field currency to a set of enabled currencies that could be selected from widget settings for that field.
Comment #7
markus_petrux commentedComment #8
markus_petrux commentedFeatured added to CVS. Please, check it out. I'll pack it and release as-is if no major issue arises.
Comment #9
markus_petrux commentedHere's the README.txt of the new module:
Comment #10
wim leersAny chance you could provide a demo for this? Or a quick screen cast?
In any case: AWESOME work! You're pushing this module forward at blazing speeds! Handing over this module to you is the best thing I ever did for it :)
Comment #11
markus_petrux commentedYep! :-D
Attached a screenshot of the money conversion dialog.
The dark part of the image is becasue the dialog is modal and an overlay darkens the whole HTML document. Still, you can see several money fields with the small calculator icon to the right of them. When you click on one of these icons, the dialog pops up, and you can now convert the amount to any supported currency.
It can all be themed, so the look can be adapted to any site easily. :)
And it goes without affecting the code of the Money CCK field module. It just implements an additional formatter for 'money' fields. So it can be used as an example to write custom addons. Well, I hope.
Comment #12
wim leersGreat! :)
A next step – but a *very* hard one – would be to implement it in such a manner that a user could convert an entire view to another currency… which would require some serious DB magic. This is something that you'll probably want to postpone because it'll definitely be hard and possibly require some hacks to CCK and/or Views.
Comment #13
markus_petrux commentedUgh, ma! xD
This is just a little CCK field. Someone in need of such feature would have to write it's own stuff, which would be mostly related to other modules such as Currency API, Views, Computed Field, etc. :-)
Comment #14
wim leersAgreed :)
In any case, *excellent* work so far! ;) :)
Comment #16
iqbalbaskara commentedSorry, is this Money CCK field Conversion Dialog ready yet? If so, where can i download it? I think I need it and I bet It will be very useful for e-commerce websites
Great work guys!
Comment #17
UNarmed commentedHey this is exactly what i am looking for =D Is it included in the latest version of the Money CCK module?