/** * Set custom template for filter * * @return string */ protected function _toHtml() { $filterableAttributes = $this->_getFilterableAttributes(); foreach ($filterableAttributes as $attribute) { $this->getChild($attribute->getAttributeCode() . '_filter')->setTemplate($this->_getFilterTemplate($attribute->getAttributeCode())); } return parent::_toHtml(); }