View Single Post
  #82  
Old 02-21-2015, 07:02 AM
 
minfinger minfinger is offline
 

X-Adept
  
Join Date: Apr 2009
Posts: 678
 

Default Re: All Products on front page, similar to featured products

Tony,

There is no ACategory in \XLite\View\ItemsList\Product\Customer\, it's in \XLite\View\ItemsList\Product\Customer\Category\

I made this module with this code. However, in the Category view I can't change to Grid View, but I can change to Table View.

PHP Code:
<?php
namespace XLite\Module\FasterThanYours\ChangeDefaultProductView\View\ItemsList\Product\Customer\Category;

abstract class 
ACategory extends \XLite\View\ItemsList\Product\Customer\Category\ACategory implements \XLite\Base\IDecorator
{
    public function 
setWidgetParams (array $params)
    {
        
parent::setWidgetParams($params);
 
        
$this->widgetParams[static::PARAM_DISPLAY_MODE]->setValue(static::DISPLAY_MODE_LIST);
    }
}
__________________
X-Cart 4.3
Joomla
Among other things
Reply With Quote