For that, add the following methods to the AllProducts class:
PHP Code:
protected function defineWidgetParams()
{
parent::defineWidgetParams();
$this->widgetParams[self::PARAM_SHOW_DISPLAY_MODE_SELECTOR]->setValue(false);
$this->widgetParams[self::PARAM_SHOW_SORT_BY_SELECTOR]->setValue(false);
}
protected function setWidgetParams()
{
parent::setWidgetParams();
$this->widgetParams[static::PARAM_DISPLAY_MODE]->setValue(static::DISPLAY_MODE_LIST);
}
Please, let me know if it does the trick for you.