/** * Define columns structure * * @return array */ protected function defineColumns() { return array_merge(parent::defineColumns(), array('featured_products' => array(static::COLUMN_NAME => \XLite\Core\Translation::lbl('Featured'), static::COLUMN_TEMPLATE => false, static::COLUMN_ORDERBY => 250))); }
/** * Get search conditions * * @return array */ protected function getConditions() { $cellName = \XLite\View\ItemsList\Model\Category::getSessionCellName(); $searchParams = \XLite\Core\Session::getInstance()->{$cellName}; if (!is_array($searchParams)) { $searchParams = array(); } return $searchParams; }