View Single Post
  #1  
Old 12-10-2014, 07:42 PM
 
juancho juancho is offline
 

Advanced Member
  
Join Date: Mar 2014
Posts: 47
 

Default How eliminate the display options and sorting tabs in product pages

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
__________________
X-Cart Business 5.0.12
Reply With Quote