Magento Advance Search - Drop down box of color - Option "All" not coming -
i working on magento project advanced search page built. have 1 attribute called "color" having following values , have made attribute property yes advance search.
blue green yellow.
i have updated form.php of mage/...so instead of multiselect, drop down box come.
now, in advance search color drop down, not able set "all" option. want because blue preselected , in each search, criteria added. have not done updates in other pages.
please me.
jeff
actually vary useful question , @jeff's comment great solution. report better formatting:
comment out code:
// 2 - avoid yes/no selects 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'))); }
and replace this:
array_unshift($options, array('value'=>'', 'label'=>mage::helper('catalogsearch')->__('all')));
Comments
Post a Comment