Exemplo n.º 1
0
 /**
  * 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;
     }
 }
Exemplo n.º 2
0
 /**
  * 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]);
 }
Exemplo n.º 3
0
 /**
  * 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');
 }
Exemplo n.º 4
0
 /**
  * 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');
 }
Exemplo n.º 5
0
 /**
  * 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();
 }
Exemplo n.º 6
0
 /**
  * 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;
 }
Exemplo n.º 7
0
 /**
  * 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;
 }