Hi
I am trying to get rid of the sorting menu options, and the display menu options (grid, table, list) in product pages. Also I would want to eliminate the pagination. I am using this code but I can't get it to work.
PHP Code:
<?php
namespace XLite\Module\MyID\MyModule\View\ItemsList\Product\Customer;
abstract class ACustomer extends \XLite\View\ItemsList\Product\Customer\ACustomer implements \XLite\Base\IDecorator
{
protected function getPagerClass()
{
return '\XLite\View\Pager\Infinity';
}
protected function defineWidgetParams()
{
parent::defineWidgetParams();
unset($this->widgetParams[self::PARAM_SHOW_DISPLAY_MODE_SELECTOR]);
unset($this->widgetParams[self::PARAM_SHOW_SORT_BY_SELECTOR]);
}
}
Anyone knows what may be wrong?
Thanks