Back to PhocacartCurrency class

Method getCurrentCurrencyRateIfNotDefault

public static
getCurrentCurrencyRateIfNotDefault
()

Method getCurrentCurrencyRateIfNotDefault - Source code

public static function getCurrentCurrencyRateIfNotDefault()
{
    $currency = self::getCurrency();
    if (isset($currency->id) && (int) $currency->id > 0 && isset($currency->exchange_rate) && $currency->exchange_rate != 1) {
        return $currency->exchange_rate;
    } else {
        return 0;
    }
}