public static function setCurrency($currency) { self::$code = $currency; if (JO_Session::get('currency') != $currency) { JO_Session::set('currency', $currency); } if (JO_Request::getInstance()->getCookie('currency') != $currency) { setcookie('currency', $currency, time() + 60 * 60 * 24 * 30, '/', JO_Request::getInstance()->getServer('HTTP_HOST')); } }