WOOCS - WooCommerce Currency Switcher

WooCommerce Points and Rewards (by WooCommerce)

Plugin: https://woocommerce.com/products/woocommerce-points-and-rewards/

  • in file \plugins\woocommerce-points-and-rewards\includes\class-wc-points-rewards-manager.php add next code:
    if (class_exists('WOOCS')) {
        global $WOOCS;
        if ($WOOCS->is_multiple_allowed) {
            $currrent = $WOOCS->current_currency;
            if ($currrent != $WOOCS->default_currency) {
                $currencies = $WOOCS->get_currencies();
                $rate = $currencies[$currrent]['rate'];
                $amount = $amount / ($rate);
            }
        }
    }

  • if (class_exists('WOOCS')) {
        global $WOOCS;
        if ($WOOCS->is_multiple_allowed) {
            $currrent = $WOOCS->current_currency;
            if ($currrent != $WOOCS->default_currency) {
                $currencies = $WOOCS->get_currencies();
                $rate = $currencies[$currrent]['rate'];
                $amount = $amount / ($rate);
            }
        }
    }

  • if (class_exists('WOOCS')) {
        global $WOOCS;
        if ($WOOCS->is_multiple_allowed) {
            $currrent = $WOOCS->current_currency;
            if ($currrent != $WOOCS->default_currency) {
                $currencies = $WOOCS->get_currencies();
                $rate = $currencies[$currrent]['rate'];
                $amount = $amount / ($rate);
            }
        }
    }