/** * @param App $app */ public function __construct($app) { parent::__construct($app); $this->_config = JBModelConfig::model(); $this->_defaultCur = $this->_config->getCurrency(); $this->_currencyMode = $this->_config->get('undefined_currency', 'default', 'cart.config'); if (empty($this->_currencyMode)) { $this->_currencyMode = 'default'; } $this->_jbcache = $this->app->jbcache; }