In der Datei
Code:
app/code/core/Mage/CatalogSearch/Block/Advanced/Form.php
muss die Funktion
getAttributeSelectElement in Zeile 185 wie folgt bearbeitet werden ($extra = .... auskommentieren):
PHP-Code:
public function getAttributeSelectElement($attribute)
{
$extra = '';
$options = $attribute->getSource()->getAllOptions(false);
$name = $attribute->getAttributeCode();
// 2 - avoid yes/no selects to be multiselects
if (is_array($options) && count($options)>2) {
//$extra = 'multiple="multiple" size="4"';
$name.= '[]';
}
else {
array_unshift($options, array('value'=>'', 'label'=>Mage::helper('catalogsearch')->__('All')));
}
return $this->_getSelectBlock()
->setName($name)
->setId($attribute->getAttributeCode())
->setTitle($this->getAttributeLabel($attribute))
->setExtraParams($extra)
->setValue($this->getAttributeValue($attribute))
->setOptions($options)
->setClass('multiselect')
->getHtml();
}
Gerade in der 1.3.0 getestet und funktioniert:
Erweiterte Katalogsuche