please visit link
on top left, you can see "currency" with dropdown box. once you mouse-over on that, you can see as below
in same link if you scroll down below you can see filters : Device, Design, Category, Sort by
once you mouse-over on Design, you can see like below image
I need same kind of functionality for "currency" also.
means, i want to remove the textfield.
once we mouse-over on "currency" text , it should display drop-down values.
code for currency
Script
<script>
jQuery(document).ready(function () {
jQuery('select#select-language').hover(function () {
jQuery(this).attr('size', jQuery('option').length);
}, function () {
jQuery(this).attr('size', 1);
});
});
</script>
CSS
select#select-language {
position: absolute;
top: 30px;
z-index: 2;
margin-top: -2em;
margin-left: 4em;
padding-right: 2em;
}
option:hover {
color: white;
background: #0000FF;
}
</style>
phtml
<?php if(count($this->getStores())>1): ?>
<div class="form-language">
<label for="select-language"><?php echo $this->__('Currency:') ?></label>
<select id="select-language" title="<?php echo $this->__('Your Language') ?>" onchange="window.location.href=this.value">
<?php foreach ($this->getStores() as $_lang): ?>
<?php $_selected = ($_lang->getId() == $this->getCurrentStoreId()) ? ' selected="selected"' : '' ?>
<option value="<?php echo $_lang->getCurrentUrl() ?>"<?php echo $_selected ?>><?php echo $this->escapeHtml($_lang->getName()) ?></option>
<?php endforeach; ?>
</select>
</div>
<?php endif; ?>
when i use template path hints , i found this code for filters :
<!--<?php $_filters = $this->getActiveFilters() ?>
<?php $_removeTxt = Mage::helper('catalog')->__('Remove This Item') ?>
<?php if (!empty($_filters)): ?>
<?php if (Mage::helper('glace_navigationlayer')->isVersionLessThan(1, 4)): ?>
<h4><?php echo $this->__('Currently Shopping by') ?></h4>
<ol class="narrowed-category">
<?php else: ?>
<p class="block-subtitle"><?php echo Mage::helper('catalog')->__('Currently Shopping by') ?></p>
<ol class="currently">
<?php endif; ?>
-->
<?php endif; ?>