Aelia - News badge

Advanced Coupons, by Rymera Web, now supports our Aelia Currency Switcher

Multi-currency offers with Advanced Coupons and Aelia Currency Switcher

Our friend Josh Kohlbach, from the Rymera Web Team, informed us that they released a new version of their Advanced Coupons plugin. This update introduces full compatibility with our multi-currency solution, the Aelia Currency Switcher for WooCommerce.

The challenge with multi-currency coupons

Many of the plugins that handle coupons, or special offers, work with the assumption that the shop will always have one currency. Due to that, they treat all prices as absolute values, and can apply discounts incorrectly in a multi-currency environment. For example:

  • A coupon for 10 USD could reduce the price by an amount of “10”, whether the product price is 100 USD, 90 EUR or 80 GBP. The resulting price would then become 90 USD (correct), 80 EUR (incorrect) and 70 GBP (incorrect).
  • An offer like “buy one, get one for 50 USD” could be interpreted by the coupon plugin as “buy one, get one for 50 USD/EUR/GBP“. The discount in USD would be correct, whereas the others would be wrong.
  • An offer like “free shipping when you spend 50 USD or more” could be interpreted by the coupon plugin as “free shipping when you spend 50 USD/EUR/GBP or more“. That would offer free shipping with the correct order amount in USD, and a higher order amount in EUR and GBP.

In the above scenarios, the error stems from the fact that the amounts entered in USD are taken as absolute values, even when the currency changes. Instead, they should be converted to their EUR and GBP counterparts.

The solution

The Advanced Coupons plugin can solve this issue, thanks to its new, native integration with our Aelia Currency Switcher. As soon as you enable it, the plugin will automatically detect our multi-currency solution and perform the conversion of your discounts, automatically. This is transparent and doesn’t require any configuration.

Is really it that easy? As you can see in the video you find below, it’s indeed easy!

What’s the advantages in using the Advanced Coupons plugin?

The Advanced Coupons plugin includes powerful features that allow you to increase your sales. Among the key features:

  • Add products with a coupon. The customer enters a coupon code, and a product is added to the cart automatically.
  • “Buy one, get one free (or discounted)” offers. Allow customers to buy multiple products, at a reduced price.
  • Shipping discounts. Offer a cheaper, or even free, shipping option when a minimum order total is reached.
  • Loyalty programs. This is a very powerful feature, that few other plugins can offer in a multi-currency environment. It allows your customers to accrue points and spend them later on your shop, while calculating the correct amount of points for each currency. For example, if you offer 1 point for every 1 USD spent, a customer who spends 150 EUR will get approximately 167 points (150 EUR to USD = ~167.45 USD = 167 points).

Multi-currency special offers at your fingertips

If you wish to run special offers on your multi-currency site, in conjunction with our Aelia Currency Switcher, the Advanced Coupons plugin is your solution. Install, enable, and you’re ready to go. On top of that, both solutions are backed by a top notch customer service, ready to assist you with any question you might have. You can also find the announcement of the integration on the official site of the coupons plugin: Multi Currency Aware Coupons With Currency Switcher for WooCommerce.

If you have any questions about the Advanced Coupons plugin and its multi-currency integration, please feel free to contact the Advanced Coupons Team. They will get back to you in no time. 👍

Thanks for reading, and have a great weekend!

The Aelia Team

Aelia - News badge

XAdapter FedEx Shipping now supports the Aelia Currency Switcher for WooCommerce

Hello, everyone! We would like to thank all the people who reached to us, to check how we were doing after being snowed in by the “Beast from the East”, as they called it here in Ireland. We got quite a bit of snow, which is a rare occurrence on this green island. Getting out of our homes was an interesting challenge!

Ireland - Four brave soldiers on the snow

Four brave soldiers crossing the mountain pass of Caradhras.

Now the situation is (almost) back to normal, and it’s time to kick off the week with a great news. The XAdapter Team informed us that they have been working to add native support for our WooCommerce Currency Switcher to their plugins. This follows the great result achieved with their DHL Shipping plugin and it’s a step in the right direction, to increase the presence of native multi-currency support in the WooCommerce market.

The next XAdapter product that supports our Currency Switcher is their FedEx Shipping plugin. We publish below the release note that the XAdapter team sent us:

From XAdapter. Received on the 27 February 2018.

Good News to all who ship international via FedEx in WooCommerce. XAdapter’s FedEx shipping plugin is now compatible with the Aelia Currency Switcher. Thanks to this new integration, now you can easily ship internationally in multiple currencies, and be sure that you will receive accurate shipping costs in all currencies.

Using the FedEx Shipping plugin in a multi-currency environment is as easy as you would expect it to be. All it takes are a few, simple steps, which you can find below:

1. Install and configure the Aelia Currency Switcher. The following document will help you getting your site ready in no time: Aelia Currency Switcher – Getting Started.

2. In WooCommerce > Currency Switcher > Geolocation page, enable the Geolocation option. This setting will automatically select the currency based on visitor’s location.

3. Install the FedEx Shipping plugin. If you are already running it, make sure that you update it to the latest version (4.0.3 or newer).

4. Verify that the FedEx plugin works, by checking that the shipping rates appear on the cart and checkout page.

5. You are ready! The FedEx shipping costs will be converted automatically to the active currency.

The XAdapter Team also put together a short video, to show how easy it is to use their FedEx plugin together with our Aelia Currency Switcher. Have a look at it, you can find it below

We would like to thank the XAdapter Team for their efforts in creating effective, simple to use solutions. We also would like to thank them for joining the ever growing list of developers who recognise the importance of native multi-currency support in WooCommerce plugins. Well done!

The Aelia Team

Aelia - News badge

WooCommerce 2.4 – Dealing with the new price cache

WooCommerce 2.4 price cache – Pros and cons

If you wrote a WooCommerce plugin that works with product prices, and found out that it returns incorrect results when you process variable products, the cause could be the new price caching logic added in WooCommerce 2.4. This new logic, which is not extensively documented, was introduced to increase performance of sites with complex variable products (i.e. products with 20 variations or more).

To reduce processing and calculations, when WooCommerce retrieves the prices of a variable product , it stores them in a dedicated cache, and returns the stored data from that moment on, until the product is modified. When this happens, none of the hooks associated with product price calculations runs, and your code is will probably not run as it should. For example, if your plugin returns different prices depending on custom criteria, you will notice that this no longer happens, and that you will always see the same prices. Those prices come from the cache.

Two of our plugins were affected by this new caching mechanism: our multi-currency solution, the Currency Switcher, and our Prices by Country plugin. In both cases, we had to find a way to work around the limitation of having static prices shown to the customer, while still trying to keep the performance at a good level. Our plugins are now up to date, as we announced earlier, and we thought of sharing our approach, so that it can benefit other developers.


Based on our tests, there are two solutions to this issue. The first is the best compromise between flexibility and performance, while the second can come useful if your code absolutely needs to get “raw”, live data.

1. Change the cache key for the prices, depending on your criteria

This solution allows to keep the price caching in place, while still keeping the data dynamic, choosing the correct one depending on arbitrary criteria. For example, suppose that a variable product should show two different set of prices:

  • Prices for wholesalers
  • Prices for the public

Your criteria, in this case, would be “customer is wholesaler“. You can then use it to ensure that the correct prices are loaded for the product. You can find an example showing how you can do this here: WooCommerce 2.4 – Price cache workaround – Dynamic key.

2. Disable the price cache entirely

This solution is no longer applicable as of WooCommerce 2.5

This solution will always give you access to live product prices, but it will disable price caching entirely. We would recommend not to use it, unless necessary. You can find the code here: WooCommerce 2.4 – Price cache workaround – Disable cache.


The new price caching system was unexpected and, although we understand why it was introduced, it can cause quite a bit of confusion. We hope that our examples will help you getting your product back on track, and add full compatibility with WooCommerce 2.4. If you have any questions, please feel free to contact us. You can also leave your feedback in the comments section, below.

The Aelia Team