/** * Define and set widget attributes; initialize widget * * @param array $params Widget params OPTIONAL * * @return void */ public function __construct(array $params = array()) { parent::__construct($params); if ('default' == \XLite\Core\Config::getInstance()->General->default_products_sort_order) { $this->sortByModes = array(static::SORT_BY_MODE_DEFAULT => 'Default-sort-option') + $this->sortByModes; } }
/** * Define and set widget attributes; initialize widget * * @param array $params Widget params OPTIONAL */ public function __construct(array $params = array()) { parent::__construct($params); unset($this->sortByModes[static::SORT_BY_MODE_AMOUNT]); }
/** * Define and set widget attributes; initialize widget * * @param array $params Widget params OPTIONAL * * @return void */ public function __construct(array $params = array()) { parent::__construct($params); $this->sortByModes += array(static::SORT_BY_MODE_RATE => 'Rate sort'); }
/** * Define and set widget attributes; initialize widget * * @param array $params Widget params OPTIONAL * * @return void */ public function __construct(array $params = array()) { parent::__construct($params); $this->sortByModes += array(static::SORT_BY_MODE_BOUGHT => 'Sales sort'); }
/** * We remove the sort by modes selector from the coming soon widgets * * @param array $params Widget params OPTIONAL */ public function __construct(array $params = array()) { parent::__construct($params); $this->sortByModes = array(); }
/** * Define and set widget attributes; initialize widget * * @param array $params Widget params OPTIONAL * * @return void */ public function __construct(array $params = array()) { parent::__construct($params); $this->sortByModes = array(self::SORT_BY_MODE_DEFAULT => 'Default') + $this->sortByModes; }
/** * Define and set widget attributes; initialize widget * * @param array $params Widget params OPTIONAL * * @return void */ public function __construct(array $params = array()) { parent::__construct($params); $this->sortByModes = array(static::SORT_BY_MODE_DATE => 'Newest first') + $this->sortByModes; }