Beispiel #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);
     static::$forceChooseOptions = \XLite\Core\Config::getInstance()->General->force_choose_product_options;
     $this->sortByModes = array(static::SORT_BY_MODE_PRICE => 'Price-sort-option', static::SORT_BY_MODE_NAME => 'Name-sort-option');
 }
Beispiel #2
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_PRICE_ASC => 'Price: low to high', static::SORT_BY_MODE_PRICE_DESC => 'Price: high to low', static::SORT_BY_MODE_NAME_ASC => 'Name: A-Z', static::SORT_BY_MODE_NAME_DESC => 'Name: Z-A', static::SORT_BY_MODE_SKU_ASC => 'SKU: a-z', static::SORT_BY_MODE_SKU_DESC => 'SKU: z-a', static::SORT_BY_MODE_AMOUNT_ASC => 'Quantity: low to high', static::SORT_BY_MODE_AMOUNT_DESC => 'Quantity: high to low');
 }