/** * Define widget params * * @return void */ protected function defineWidgetParams() { parent::defineWidgetParams(); $this->widgetParams += array(static::PARAM_E => new \XLite\Model\WidgetParam\Int('Number of digits after the decimal separator', static::getDefaultE()), static::PARAM_THOUSAND_SEPARATOR => new \XLite\Model\WidgetParam\String('Thousand separator', \XLite\Core\Config::getInstance()->Units->thousand_delim), static::PARAM_DECIMAL_SEPARATOR => new \XLite\Model\WidgetParam\String('Decimal separator', \XLite\Core\Config::getInstance()->Units->decimal_delim)); }
/** * Define widget params * * @return void */ protected function defineWidgetParams() { parent::defineWidgetParams(); $this->widgetParams += array(static::PARAM_E => new \XLite\Model\WidgetParam\Int('Number of digits after the decimal separator', 2)); }