View Single Post
  #3  
Old 10-05-2014, 08:06 AM
 
JannieB JannieB is offline
 

Senior Member
  
Join Date: Sep 2004
Posts: 117
 

Default Re: 4 product column on main page. how?

The only way I got this to work was by setting the max number of columns from 3 to 4.

I did this by adding a class in my custom module like this:

Code:
abstract class GridColumns extends \XLite\View\ItemsList\Product\Customer\Category\ACustomer implements \XLite\Base\IDecorator { const GRID_COLUMNS_MAX = 4; protected function defineWidgetParams() { parent::defineWidgetParams(); $this->widgetParams[static::PARAM_GRID_COLUMNS] = new \XLite\Model\WidgetParam\Set('Number of columns (for Grid mode only)', 4, true, $this->getGridColumnsRange()); } }

However this will affect all pages (which is what I wanted), not just the home page.

Jan
__________________
Jan Beesley
(Currently Xcart 5
Previously XCart Gold from 3.5....)
Reply With Quote