WOOCS - WooCommerce Currency Switcher Professional


SUMO Subscriptions – WooCommerce Subscription System

Plugin link: https://codecanyon.net/item/sumo-subscriptions-woocommerce-subscription-system/16486054

  • In file wp-content\plugins\sumosubscriptions\includes\class-subscription-frontend.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'];
                $line_total = $line_total / $rate;
            }
        }
    }
    

  • In file wp-content\plugins\sumosubscriptions\includes\subscription-UI-functions.php add next code:
    if (class_exists('WOOCS')) {
        global $WOOCS;
        $initial_fee = $WOOCS->woocs_exchange_value($initial_fee);
        $trial_fee = $WOOCS->woocs_exchange_value($trial_fee);
    }