FOX - WooCommerce Currency Switcher Professional

WooCommerce – Show only lowest prices in variable products by Fernando Tellado

Plugin URL: https://wordpress.org/plugins/show-only-lowest-prices-in-woocommerce-variable-products/

  • In file  wp-content\plugins\show-only-lowest-prices-in-woocommerce-variable-products\show-lowest-woo-variable-prices.php add next code:
    if (class_exists('WOOCS')) {
        global $WOOCS;
        if ($WOOCS->current_currency != $WOOCS->default_currency) {
            $currencies = $WOOCS->get_currencies();
            $prices[0] = $prices[0] / $currencies[$WOOCS->current_currency]['rate'];
            if ($prices[1]) {
                $prices[1] = $prices[1] / $currencies[$WOOCS->current_currency]['rate'];
            }
        }
    }