I have an issue when doing this:
PHP Code:
// disabling ability to sort products and switch between display modes
protected function defineWidgetParams()
{
parent::defineWidgetParams();
$this->widgetParams[self::PARAM_GRID_COLUMNS]->setValue(3);
unset($this->widgetParams[self::PARAM_SHOW_DISPLAY_MODE_SELECTOR]);
}
}
The display options are gone (that's what I wanted). The Sort menu is displayed but does not work, When I try to sort, let say by newest, it does not display any product at all. Any idea what it is happening?
I have also tried:
PHP Code:
$this->widgetParams[self::PARAM_SHOW_SORT_BY_SELECTOR]->setValue(true);
but no change
Thanks