Hi all and how are you all, I want to create a dropdown list similar to the one in the image and link below.
This company has it on there home page another exmple; www.autostylinguk.co.uk
Thanks in advance for all your help.
Kind Regards
bow103
So far at the moement I have the following;
<?php
function getSelectBox($attributeCode, $label = '', $defaultSelect = null, $extraParams = null){
$options = array();
$product = Mage::getModel('catalog/product');
$attribute = $product->getResource()->getAttribute($attributeCode);
if($attribute->usesSource()){
$options = $attribute->getSource()->getAllOptions(false);
array_unshift($options, array('label' => $label, 'value' => ''));
}
$select = Mage::app()->getLayout()->createBlock('core/html_select')
->setName($attributeCode)
->setId($attributeCode)
->setTitle($label)
->setValue($defaultSelect)
->setExtraParams($extraParams)
->setOptions($options);
return $select->getHtml();
}
?>
<?php echo getSelectBox('manufacturer', 'Select Manufacturer'); ?>
you can probably try this cacading dropdown plugin
http://www.dnasir.com/github/jquery-cascading-dropdown/demo.html
There is a extension for this purpose, Once installed the users to search by Year, Make and Model and any other attribute that you want to set, Import / Export artibute using CSV file to increase the search filter,
For more details view - http://www.fmeextensions.com/magento-year-make-model-attributes.html
Working on one of our customers website - factorywheelstoday.anylinuxwork.in
How do I close this open topic as I have sorted out the soloution?