Changelog
Historique des versions
Et les correctifs de sécurité ? Nous les prenons au sérieux et les publions régulièrement.
- Fixed: automatic rate updates never ran on shops with regular REST API traffic. The rate update scheduler was hooked to rest_api_init without limiting the number of accepted arguments, so WordPress passed the WP_REST_Server instance into the method’s $reset parameter. Every REST request therefore restarted the schedule from the current time and cleared the last run marker, which pushed the next run permanently into the future. Rates stayed frozen at the values stored before the upgrade. Sites with block based cart and checkout, the Store API, page builders or headless front ends were affected the most, sites with little or no REST traffic were not affected. Reported by Performize.it.
- Fixed: currency switching was unreliable when Currency storage was set to Transient and the option I am using cache plugin on my site was enabled. In that combination the selected currency could be applied to the prices but not to the cart, the checkout totals or the currency switcher itself, so different parts of one page could show different currencies.
- Fixed: the selected currency is now applied to requests made by WooCommerce Blocks and the Store API, so the block based mini cart, cart and checkout render in the visitor's currency.
- Fixed: prices were shown in the shop base currency inside content loaded by page builders through the REST API, for example the Bricks side cart and Bricks popups.
- Fixed: fee lines (for example custom regional tax or surcharge fees) were not converted when an order was recalculated into another currency in wp-admin — the currency label changed while the fee amount stayed as it was.
- Added: order recalculation on manual currency change can now be customized. If a function named woocs_order_recalculated_custom exists on the site, the plugin calls it right after an order has been recalculated to another currency and before the order is saved, passing the order object, the new currency, the previous currency and the exchange rate the order was stored with. This makes it possible to override amounts of individual order items, for example flat fees that must keep a fixed value in each currency instead of being converted by rate. Works with both HPOS and legacy order storage. If the function is not declared, behaviour is unchanged.
- Fixed: fatal error (infinite loop / memory exhaustion) on the order-received and view-order pages when HPOS is disabled
- Fixed logic of working: cache site + transient, added localstorage for selection personalization
- Fixed class cron: is_attached() returns false not only when the hook is missing, but also when the stored recurrence differs from the currently configured one. So as soon as those two values disagreed for any reason, every single page request re-attached the event and pushed next a full interval into the future.
- Fixed: order totals could be inflated when saving/editing an order in a currency that uses a comma as the decimal separator (wp-admin order editor)
- Fixed: base currency symbol shown instead of the order currency after saving order items on HPOS
- 1 security issue fixed thanks to Nguyen Ba Khanh and Patchstack
- fix about orders refund incorrect amount
- Improvement: Codebase aligned with WordPress Coding Standards (WPCS) and PluginCheck recommendations.
- 1 security issue fixed thanks to Long Lagon and Wordfence
- some small fixes
- 2 security issues fixed thanks to Que Thanh Tuan, timomangcut and bounty program of Patchstack
- 1 security issue fixed thanks to Ren Voza and bounty program of Wordfence
- added hook woocs_sheduler_rates_updated
- set of small fixes
- new hook <a href="https://currency-switcher.com/hook/woocs_price_html/">woocs_price_html</a>
- new hook <a href="https://currency-switcher.com/function/rest-api/">REST API</a>
- some small fixes
- the fix related to new coupons creation
- small fixes
- new option: Rate floor/ceil which allows to set max and minum rate for currencies to avoid losses due to sharp fluctuations in currencies
- new hook woocs_init_compatibility_woo_subscriptions: for switch on of compatibility with WooCommerce Subscriptions https://pluginus.net/support/topic/compatibility-fix-for-woocommerce-subscriptions-7-5/, thanks to superdav42
- 1 security issue fixed thanks to mikemyers and bounty program of Wordfence
- 1 security issue fixed thanks to Arkadiusz Hydzik from Wordfence
- 1 security issue fixed thanks to Ananda Dhakal from patchstack.com
- bunch of small fixes, improved code security
- 1 security issue fixed thanks to stealthcopter from Wordfence
- 1 security issue fixed thanks to Dhabaleshwar Das from patchstack.com
- new feature - <a href="https://share.pluginus.net/image/i20240306171529.png">https://share.pluginus.net/image/i20240306171529.png</a> you can update order rates, the data in the analytics table is also updated
- 1 security issue fixed thanks to Lucio Sá from wordfence.com
- 1 minor fix
- 1 security issue fixed thanks to Lucio Sá from wordfence.com
- 1 security issue fixed thanks to Brandon Roldan from patchstack.com
- some fixes got from customer support
- 1 javascript fix active-filters-wrapper-frontend.js
- <a href="https://currency-switcher.com/update-v-2-4-1-and-v-1-4-1/">https://currency-switcher.com/update-v-2-4-1-and-v-1-4-1/</a>
- heap of little fixes
- FOX Session
- new function <a href="https://currency-switcher.com/function/woocs-convert_from_to_currency/">convert_from_to_currency</a> which allows to convert money amount from one currency to another one
- 1 security issue fixed thanks to Erwan Le Rousseau, via WPScan
- 1 security issue fixed thanks to Marc Montpas, via WPScan
- Quick fix for ajax prices update
- Loco translate incompatibility
- Quick fix for PHP 7.2 and lower
- <a href="https://currency-switcher.com/update-v-2-3-9-v-1-3-9/">https://currency-switcher.com/update-v-2-3-9-v-1-3-9/</a>
- WordPress 6.0 compatibility
- small fixes
- 1 security issue fixed thanks to Krzysztof Zając, via WPScan
- fixed: is_ajax function is deprecated since woocommerce version 6.1.0. Replace with wp_doing_ajax.
- 1 security issue fixed (sanitize and escape)
- admin panel re-design
- some small code fixes
- 1 security issue fixed
- WordPress v.5.8 legacy widgets fix
- 1 security issue fixed
- some small code fixes
- <a href="https://currency-switcher.com/update-v-2-3-6-v-1-3-6/">https://currency-switcher.com/update-v-2-3-6-v-1-3-6/</a>
- <a href="https://currency-switcher.com/how-to-customize-currency-switcher-view/">Smart Designer</a>
- fix for ddslik drop-down
- <a href="https://currency-switcher.com/translations/">fixed possibility for adding custom translations</a>
- jQuery fixes for WordPress 5.6 compatibility
- <a href="https://currency-switcher.com/update-v-2-3-4-v-1-3-4/">https://currency-switcher.com/update-v-2-3-4-v-1-3-4/</a>
- <a href="https://currency-switcher.com/update-v-2-3-3-v-1-3-3/">https://currency-switcher.com/update-v-2-3-3-v-1-3-3/</a>
- <a href="https://currency-switcher.com/update-v-2-3-2-v-1-3-2/">https://currency-switcher.com/update-v-2-3-2-v-1-3-2/</a>
- <a href="https://currency-switcher.com/update-v-2-3-1-v-1-3-1/">https://currency-switcher.com/update-v-2-3-1-v-1-3-1/</a>
- some little fixes
- new currency agregator added: bnr.ro
- new currency agregator added: currencylayer
- new currency agregator added: open exchange rate
- 1 hot fix for hook raw_woocommerce_price
- heap of small fixes
- added in currencies new field as "interes" which allows to add some your interest to the currencies rates
- added possibility to set currencies as Public or as Private. In private mode currency not published in swithers and user cannot set it by link through "?currency=XXX"
- new in-built module Statistic: enable it in tab Advanced Options
- 3 new autonomic skins: Style #1, Style #2, Style #3 - what is cool - 3 currency switchers with different designs can be added on the same page
- some new templates has its own unique options: [woocs style="2" head_bg="#ff0000" head_txt_color="#000" head_close_bg="green" head_close_color="yellow"] + [woocs style="3" head_title="Select Currency"]
- REST API request added: https://currency-switcher.com/using-rest-api-with-woocommerce-currency-switcher/
- new option in tab Options "Show options button on top admin bar" - Show WOOCS options button on top admin bar for quick access. Very handy for active work. Visible for site administrators only!
- 1 fix for hook woocommerce_add_to_cart_hash
- Compatibility with woocommerce 3.6.1
- Some little fixes
- Some minor fixes
- Code improving
- Google aggregator removed at all
- Added 3 new agregators: Fixer, MicroPyramid, The Free Currency Converter by European Central Bank
- Added new field in settings which allows insert subscribed API key for Fixer and The Free Currency Converter
- Fixes for WOOCS functionality for fixed amounts
- <a href="https://currency-switcher.com/update-v-2-2-7-v-1-2-7/">https://currency-switcher.com/update-v-2-2-7-v-1-2-7/</a>
- Removed currency agregators which stopped to work
- Added back Google and Yahoo currency agregators
- New feature: No GET data in link - Swithes currency without GET properties (?currency=USD) in the link
- Minor fixes, removed some notices
- <a href="https://currency-switcher.com/update-v-2-2-4-v-1-2-4/">https://currency-switcher.com/update-v-2-2-4-v-1-2-4/</a>
- Adaptation for woocommerce 3.3.1
- <a href="https://currency-switcher.com/update-v-2-2-2-v-1-2-2/">https://currency-switcher.com/update-v-2-2-2-v-1-2-2/</a>
- <a href="https://currency-switcher.com/update-v-2-2-1v-1-2-1/">https://currency-switcher.com/update-v-2-2-1v-1-2-1/</a>
- <a href="https://currency-switcher.com/update-v-2-2-0-v-1-2-0/">https://currency-switcher.com/update-v-2-2-0-v-1-2-0/</a>
- Heap of small bugs fixed
- A lot of code was remade to make WooCommerce 3.0.0 and WOOCS compatible
- <a href="https://currency-switcher.com/update-v-2-1-8-and-v-1-1-8/">https://currency-switcher.com/update-v-2-1-8-and-v-1-1-8/</a>
- Heap of small bugs fixed
- https://wordpress.org/support/topic/multi-currency-on-invoices?replies=8 - resolved
- New option in the currencies settings: Decimals
- New hook: woocs_drop_down_view
- Advanced API doc: https://currency-switcher.com/codex/
- Heap of small bugs fixed
- New hook woocs_price_html_tail
- Approx. value on cart and chekout page in the currency of customer (in multiple mode only+geoip enabled)
- New hook woocs_get_approximate_amount_text
- Geo Location troubles fixed
- Closed XSS vulnerability. Thanks to Ben Khlifa Fahmi ; Founder & CEO of BenkhlifaExploit Founder & Pentester at Tunisian Whitehats Security
- Some little fixes
- New button in order to convert oder data to basic currency amounts
- New shortcode: [woocs_show_current_currency text="" currency="" flag=1 code=1]
- New shortcode: [woocs_show_custom_price value=20] -> price in selected currency for txt-adv-banners
- New option: Prices without cents
- New option: Hide switcher on checkout page
- New option: I am using cache plugin for my site
- New filter: add_filter("woof_custom_format", "my_woof_custom_format", 999, 2); - Any manipulation with price format
- Hint: wp-admin/admin.php?page=wc-settings&tab=woocs&woocs_reset=1 - reset currency options - be care
- Improved: cron periods added - weekly, monthly
- WordPress 4.3 small adaptation - using __construct in the widget, previous widget-API was deprecated
- Added price popup on the front near each price optionally
- Added in body implemented currency css class. Example: currency-eur
- Added currency agregator for Russian Centrobank - asked by customers from Russia
- Compatibility for woocommerce 2.4
- Added storage optionally, transient for sites which can work with session normally because of server options
- Added new drop-down wselect -> https://github.com/websanova/wSelect#wselectjs
- In shortcode [woocs] and currency switcher widget added new option txt_type which allows show currency description in drop-down instead of its code
- Some small bugs fixed
- Dark chosen skin implemented
- Some small bugs fixed
- Done a lot to make compatibility higher
- 1 bad logic bug fixed, which not recount prices in multiple mode
- AJAX refresh of mini cart fixed, now its ok
- A lot of small bugs fixed and a lot of code were rewritten
- Compatibility with 90% of currency gates implemented
- Added widget and shortcode - currency rates [woocs_rates exclude="GBP,AUD" precision=2]
- Added widget and shortcode - currency convertor [woocs_converter exclude="GBP,AUD" precision=2]
- 1 eur is: [woocs_get_sign_rate sign=UAH] - simple shortcode to show currency rate relationaly of basic
- $val = apply_filters("woocs_exchange_value", $val); -> filter for developers for conversion from basic to current currency
- YAHOO agregator functionality fixed
- Index of the premium version changed to 2
- Custom price format options added in WOOCS settings: __PRICE__ (__CODE__)
- Some of little bugs from customers fixed + paypal amount gross error
- New feature: for each currency option - removing cents on front
- Heap of bugs from customers fixed
- Currency can be changed automatically according to visitor’s IP using woo WC_Geolocation class
- New mode: Show only the flags of the countries instead of a dropdown
- Heap of bugs from customers fixed
- Adaptation for woocommerce 2.3.x
- Bugs fixed
- Synchronization with native woo price slider
- Removing cents from JPY
- Added new options in settings: Show/Hide flags by default, Show/Hide money signs
- Added shortcode [woocs_get_sign_rate sign=EUR] relative of basic currency
- Heap of bugs with tax fixed
- Ability to understand links with currency: ?currency=GBP
- Heap of bugs fixed
- WooCommerce shopping card widget fix
- Custom money signs option
- Currencies rate auto update option by cron
- Ability to set order currency which were created through admin panel by hands
- Heap of bugs fixed
- Welcome currency option
- The customer allowed to pay in the selected currency
- 1 serious bug fixed: plugin affect PayPal
- Couple of small bugs
- Release