WooCommerce Currency Switcher – Multiple optimisations

WooCommerce Currency Switcher – What’s new

Currency Switcher for WooCommerce has been updated to version This update brings the following improvements and fixes:

  • Removed redundant code. The redundant code was used to set customer’s currency when viewing an existing order, but it’s no longer required by current architecture.
  • Refactored method Order::get_order_currency() to be compatible with parent class’ method signature.
  • Optimised logic used to handle coupons. Coupon processing is now skipped when the base currency is active (the conversion would be ineffective, anyway).
  • Added new WC_Aelia_CurrencyPrices_Manager::convert_product_price_from_base() method. The new method will be used exclusively to convert product prices, and it uses a filter to allow 3rd parties to modify the result of the conversion (for example, to implement a custom rounding logic).
  • Fixed loading of frontend JavaScript, so that it’s not loaded when user is opening the Admin section. This will slightly reduce the time to load the admin pages and prevent conflitcs with other scripts.

How to get latest version

New customers

Simply place your order and you will get the latest version.

Existing customers

You should be able to download the updated file using the link you received with your order. If the link doesn’t work, please contact Support to receive the latest version. Thanks.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.