PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

3rd party plugin support (for the new fox currency)

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hello,

I have a plugin named" iThemeland Free Gifts For WooCommerce" which in the past supported Fox currency switcher, but now it does not

I think some updates broke compatibility with that, I would like to fix it, since now it allows for free gifts at every order above the threshold of 100 anything (should be euros)

in file ithemeland-free-gifts-for-woocommerce\frontend\functions\condition-functions.php

at Line 800 circa, I find the following

// RealMag777 currency switcher support
if ( $order_base_currency = order_get_meta( $order, '_woocs_order_base_currency', true ) ) {
if ( $order_base_currency !== $order->get_currency() ) {
if ( $currency_rate = order_get_meta( $order, '_woocs_order_rate', true ) ) {
return (float) ( $order->get_total() / $currency_rate );}}}

Does it read right for you? Or maybe it should be written differently in order to be compatible with the latest fox currency switcher?

Thank you very much indeed

another question (it is more of a curiosity) inside of the standard woocommerce free shipping module

woocommerce\includes\shipping\free-shipping\class-wc-shipping-free-shipping.php

I see a function called wc_format_localized_price

Since the standard woocommerce free shipping module works great with the current Fox Currency Switcher (the free shipping threshold is correctly interpreted in the right currency, and free shipping condition is applied correctly)

can I use the above function (is it that the right one?) in other plugins or codes, in order to output the"normalized" value of the total amount in the cart?

Thank you very much indeed

Hello

Unfortunately, in this case, you need to study the code of a third-party plugin.

Or as described in this article - https://currency-switcher.com/woocs-labs - you can create a new request to adapt this 3rd party plugin