Code Monkey home page Code Monkey logo

wp-currencies's Introduction

WP Currencies

GitHub version Join the chat at https://gitter.im/unfulvio/wp-currencies

WP Currencies is a WordPress plugin that imports and periodically updates a complete set of World currencies and their exchange rates from openexchangerates.org to WordPress database for later retrieval and use.

This plugin is intended for WordPress backend and frontend developers who want to build with currency data from within WordPress.

Download from WordPress.org

Features

Requirements

Documentation

Read the WP Currencies documentation on Github wiki.

Contributing

If you find this plugin useful you're welcome to contribute by issuing bug reports, cloning this repo and submitting pull requests. Thank you.

wp-currencies's People

Contributors

gitter-badger avatar unfulvio avatar wallenium avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

wp-currencies's Issues

Incorrect Link to Currencies in Plugins Menu

After the plugin is activated, if you click on the 'Currencies' link under the plugin name on the installed plugins page, the link is incorrect and results in a WordPress error, "You do not have sufficient permissions to access this page."

The link ends in, "?page=wp-currencies". The - (hyphen) in wp-currencies should be an _ (underscore). The 'Currencies' link in the Settings menu is fine.

Jason

Can't get currency updates for WooCommerce/WooCommerce MultiLingual

I have the current version of WooCommerce with WooCommerce MultiLingual on WordPress 4.1. I set up Canadian and US dollar currencies in WooCommerce MultiLingual with Canadian dollars being my store's base currency. I got a forever free API key from openexchangerates.org for testing before I invest in a higher level plan.

When I try to trigger an update in WP Currencies by changing the update interval and clicking Save Changes, my WooCommerce MultiLingual settings automatically switch back to 'No multi-currency.' When I turn multi-currency back on, the US dollar exchange that I had manually set has been cleared and there is no exchange rate shown there.

I have checked my database with phpMyAdmin and the wp_currencies table has not even been created.

Thanks for any help you can give,
Jason

How do I use this in my Javascript/Jquery?

Sorry, but I just don't get it.

The Plugin works great, but how do I access is in my JS/JQuery code?

jQuery(document).ready( function() {
	var total = 1000;
	// Obviously this isn't working, but how would I achieve something like this?
	var totalConverted = convert_currency( $amount = total, $from = 'USD', $in = 'EUR' );

	console.log(totalConverted);
});

Many requests to Open Exchange Rates

Since updating to version 1.4 I see the updates going from Open Exchange Rates hundreds of times daily instead of the configured setting of once per hour. Updating to 1.4.1 didn't seem to change anything with it. See my Open Exchange Rates account statistics attached here (23.06 is the date of update to 1.4, see the jump in the stats, 25.06 is the date of update to 1.4.1).
wp-currencies bug

PHP Fatal error in rates.php on line 168

PHP Fatal error: Cannot use object of type WP_Error as array in (...)/wp-content/plugins/wp-currencies/includes/rates.php on line 168

I don't know when this happens... but it's popping up in my error log sometimes.

problem fetching currency data

I have a valid API Key but when i use this i get the erroe below:

Warning: WP Currencies: There was a problem fetching currency data from database. Is your API key valid? in /html/wp-content/plugins/wp-currencies-master/includes/functions.php on line 117

I have de-activated and deleted and then re-installed the latest version but the error still remains.

php 7.1 error

Fatal error: Uncaught Error: [] operator not supported for strings in /home/maxrom/agroonetest.info/www/wp-content/plugins/wp-currencies/includes/functions.php:258 Stack trace: #0 /home/maxrom/agroonetest.info/www/wp-content/plugins/wp-currencies/includes/functions.php(90): currency_exists('USD') #1 /home/maxrom/agroonetest.info/www/wp-content/plugins/wp-currencies/includes/extensions/shortcodes.php(54): convert_currency(3600, 'USD', 'UAH') #2 /home/maxrom/agroonetest.info/www/wp-includes/shortcodes.php(345): WP_Currencies\Shortcodes->currency_conversion_shortcode(Array, '', 'currency_conver...') #3 [internal function]: do_shortcode_tag(Array) #4 /home/maxrom/agroonetest.info/www/wp-includes/shortcodes.php(223): preg_replace_callback('/\[(\[?)(post_v...', 'do_shortcode_ta...', '<!--\n[cred_...') #5 /home/maxrom/agroonetest.info/www/wp-includes/class-wp-hook.php(298): do_shortcode('<!--\n[cred_...') #6 /home/maxrom/agroonetest.info/www/wp-includes/plugin.php(203): WP_Hook->apply_filters('<!--\n[cred_link...', Arr in /home/maxrom/agroonetest.info/www/wp-content/plugins/wp-currencies/includes/functions.php on line 258

Can't make the get_exchange_rates_json work

Hi,

I tried to use the ajax function get_exchange_rates_json but couldn't make it work because the currency parameter is being read from the function argument instead of the $_GET.
I changed the code to read the argument from $_GET['currency'] so that it works.

Is there any way to use this function in javascript?

Should I do a pull request of this change?

Thanks

Acf v5.x (acf_force_type_array)

Hello, there is an issue with acf and wp_currencies with this function :

acf_force_type_array

This function don't exist anymore in the last version of Acf

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.