Quote:
Originally Posted by minfinger
Tony,
No I want it to be List mode by default on the whole site.
|
In this case, you need to decorate the setWidgetParams() method of
Code:
\XLite\View\ItemsList\Product\Customer\Category\ACategory
class and add this line to this decorated function:
PHP Code:
$this->widgetParams[static::PARAM_DISPLAY_MODE]->setValue(static::DISPLAY_MODE_LIST);
More info about decoration is here:
http://kb.x-cart.com/display/XDD/Step+3+-+applying+logic+changes