Quote from Y on March 18, 2023, 01:55
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
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