=== Exchange Rates Today === Contributors: Silver222 Tags: woocommerce, price, exchange rate, currency Requires at least: 5.6 Tested up to: 7.0 Requires PHP: 7.4 Stable tag: 3.0.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Multiply every WooCommerce price by an exchange rate you set by hand, so a shop priced in one currency displays in another. == Description == A small WooCommerce plugin for shops that keep prices in one currency but need to show them in another. Enter today's rate on the settings screen and every product price is multiplied by it before being displayed — simple products, variable products, variations, sale prices and the price filter widget included. Product prices in the database are never modified, so changing the rate back to 1 restores the original figures exactly. = Features = * One setting: the rate. Nothing else to configure. * Covers simple products, variations and variable product price ranges. * Converts the price filter widget in both directions, so filtering by a displayed price range returns the right products. * Participates in WooCommerce's variation price cache, so a rate change takes effect immediately. * Available in English, Ukrainian and Russian. = Limitations = The rate is entered manually. This plugin does not fetch rates from any external service, and it does not change the currency symbol — set that under WooCommerce → Settings → General. == Installation == 1. Install and activate the plugin. 2. Go to WooCommerce → Today's Exchange Rate. 3. Enter the rate and save. == Frequently Asked Questions == = Does this change the prices stored on my products? = No. Conversion happens when a price is displayed. Set the rate to 1 and everything reads exactly as it is stored. = What happens if I do not set a rate? = Prices are shown unchanged. = Does it change the currency symbol? = No. Set that under WooCommerce → Settings → General. = I upgraded from 1.x — do I need to re-enter my rate? = No. The existing rate is carried over automatically on activation. == Changelog == = 3.0.0 = Rewrite. Please back up before updating. * Fixed a fatal error on PHP 8: filtering the catalogue by price while no rate was set raised DivisionByZeroError and broke the shop page. * Fixed sale prices on simple products not being converted, which could show a converted regular price struck through next to an unconverted sale price. * Fixed rates typed with a comma ("38,5") being silently read as whole numbers, mispricing the entire shop. * Rates of zero, negative numbers and non-numeric input are now rejected instead of zeroing every price. * All functions are now prefixed. The previous versions defined `custom_price()` and `setting_page()` in the global namespace, which could fatal on activation alongside another plugin or theme using those names. * The `kurs` option is renamed to `ert_rate`, migrated automatically on activation. * The settings screen is now translatable, and ships with Ukrainian and Russian translations. * Added a clear notice when WooCommerce is not active, instead of failing silently. * Settings screen now requires the `manage_woocommerce` capability and escapes all output. * Declared compatibility with WooCommerce High-Performance Order Storage. * Version numbering corrected: the plugin header, changelog and stable tag previously disagreed (1.7, 1.8 and 2.5.7 respectively). 3.0.0 is above all three so every existing install updates cleanly. = 1.8 = Add PHP 7.2 support. Fix variable products support. Fix price filter widget. = 1.7 = Fix for Price filter widget = 1.6 = Last version = 1.5 = Stable version = 1.4 = Fixed bug with Sale products = 1.3 = Variations price added. = 1.2 = Fix bug with float price. = 1.1 = Fixed some bugs. Now plugin works not only with catalogue and change price at whole shop. = 1.0 = First version :) == Upgrade Notice == = 3.0.0 = Fixes a fatal error on PHP 8 and a bug that mispriced shops when the rate was typed with a comma. Your rate is migrated automatically.