responsiv / currency-plugin Goto Github PK
View Code? Open in Web Editor NEWTools for displaying currencies and forex conversions
License: Other
Tools for displaying currencies and forex conversions
License: Other
Hai,
I can remove decimal point .00 ? because my default currency IDR(Indonesia Rupiah) not use decimal point.
Thanks For Plugins , very helpful.
I see there is a setting to schedule currency exchange rate updates, however when adding a new currency, you get an error when going to a page, for example:
An exception has been thrown during the rendering of a template ("Currency rate for "CRC" not found.").
I suggest that the currency rate simply just be updated instead of throwing this exception. Either that, or update it right away as soon as it's added.
Right now, the currency formats are limited to short and long which are pre-defined. What if I wanted something simple like AUD 500 than $500 AUD? datetime field in columns support specifying formats as D-m-Y, etc. If would be nice to have the same conversions here.
responsiv_currency_exchange_rates
.rate
DECIMAL(15,4) should allow for more decimal places. Currently, with only 4 places exchange rates tend to lack precision on values such as
How to use : Currency::format(10, ['from' => 'USD', 'to' => 'BTC']); in Twig
I was looking for a currency/country relation and find your currency plugin.
It can be nice to extend this plugin to create currencies & locations relations between those two plugins ?
Would you accept a PR for this ?
Hi Daftspunk,
I would like to request an update to this plugin to be able to load the API data via a cron job.
For example, I set up a cron job that makes an API call once a day to get the daily rates and then save that data into a database table for us to use in the twig functions.
This way the plugin doesn't try and make way too many API requests every time a user open a web page that uses this plugin.
p.s. the CoinmarketCap API is also out of date, I believe they are using a pro version now.
p.p.s. I know you are so busy! Would it be a good idea for you to move this plugin over to your Rainlab repo's then more of us can work on this plugin and help keep it updated.
Thanks.
How to use the format short to display this value in a twig template ?
{ 10|currency }}
With a clean install of OctoberCMS, I have installed this plugin.
Under settings, "Currencies" shows a list of some currencies.
However, clicking on "Currency converters" in the settings throws an exception:
Call to undefined method October\Rain\Support\Singleton::listConverters()
/var/www/project/plugins/responsiv/currency/models/ExchangeConverter.php line 73
TYPE
Undefined
EXCEPTION
Symfony\Component\Debug\Exception\FatalErrorException
Hello,
I'm testing this module and it does the job pretty well when dealing with currencies, congratulation to the devs !
But there is an important feature that is missing to me : The possibility to define a value per currency.
I noticed the "currency" formWidget that allow to define a value for the actual default currency, but then, you can only rely on currency converters in order to get the price in another currency. You often need to get a better control over your price on different currency, so, adding this possibility in that plugin would be really useful.
Basically, I imagine a "currencies" formWidget that would behave exactly like translatable fields (provided by the translate plugin)
See the attached screenshot (taken from the translate plugin page), you just need to replace languages by currency.
Is per currency value in the scope of this module or do I have to create my own to handle that ?
Best regards,
Alex
Hi. We have developed an application and the plugin is not working (updating the DB value for the currency hourly..daily etc.) if we set the PHP version to 7.3. If we set this up to 7.2 it works just fine.
Hi.
I have created plugin for using money painlessly in OctoberCMS that extends yours (it is waiting in Marketplace for approval, right now you can see it only on Github: https://github.com/initbizlab/oc-money-plugin).
Its main feature for now is a form widget that formats amount-input (on blur, using format defined in currency), dropdown with currencies in the field and is managing fraction digits so that the amount can be stored as integer in database.
But I am not writing here for advertising ;) I am just curious why you have not add such field as decimals
or fraction_digits
to your Currency
model. For me it makes sense to store default precision in database, because we will know how many places are decimals while storing the amount as integer. Right now your plugin is enforcing users to use float or doubles for their amounts and this is not good practice (or am I missing something?).
My plugin updates your currencies table (adds the fraction_digits
field) and wraps the functionality in such a way that users will not see integers, but nice formatted strings.
If you think it makes sense we should join forces here or just please remember about my plugin on your plugin updates :)
I was considering creating you PRs instead of writing new plugin, but I want to have full control over this code since I want to add more features that concerns money problems while developing.
…
On the site of OctoberCMS old version of the plugin
I need convert from USD to BTC and return 0.00 :( Ho to change round?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.