Code Monkey home page Code Monkey logo

currency-plugin's People

Contributors

acasar avatar alxy avatar daftspunk avatar dzapek avatar gergo85 avatar gpasztor87 avatar joseph-d avatar mwoller avatar reg2005 avatar samgeorges avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

currency-plugin's Issues

remove decimal point

Hai,

I can remove decimal point .00 ? because my default currency IDR(Indonesia Rupiah) not use decimal point.

Thanks For Plugins , very helpful.

Currency rate should be updated if it's not found

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.

Feature Request: Make currency format more customisable

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.

DB field

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 $13,000 where the conversion can be out several $.... IM not a greedy man, but my client is and this bothered them "a lot" :-)

Location plugin relations

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 ?

Feature Request: Able to create cron jobs to load api data to save api requests

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.

Config type for columns

I did exactly as your Readme-Currency List Column part but I got this problem "Target class [myauthor.myplugin.helper] does not exist.".
It worked perfectly for form field config, do you have any ideas about my problem?

image

Call to undefined method October\Rain\Support\Singleton::listConverters()

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

formWidget : Per currency value

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

53dd9854c99c8723270225

Monetary types and fraction digits

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.

Convert BTC

I need convert from USD to BTC and return 0.00 :( Ho to change round?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.