WOOCS - WooCommerce Currency Switcher

Woocommerce Pickup Location

The plugin URL: http://pdocrud.com/wp-pickup-location/

  • In file wp-content\plugins\woocommerce-pickup-location\includes\helper\WPPKPO_Shipping_Method.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'];
                $order_amount = $order_amount / $rate;
            }
        }
    }