disable certain filter via css


/ Published in: PHP
Save to your folder(s)

template catalog->layer->view.phtml


Copy this code and paste it in your HTML
  1. <?php if($this->canShowBlock()): ?>
  2. <div class="block block-layered-nav">
  3.  
  4. <div class="block-content">
  5. <?php echo $this->getStateHtml() ?>
  6. <?php if($this->canShowOptions()): ?>
  7. <p class="block-subtitle"><?php echo $this->__('Quick Product Finder') ?><p>
  8. <dl id="narrow-by-list">
  9. <?php $_filters = $this->getFilters() ?>
  10. <?php foreach ($_filters as $_filter): ?>
  11. <?php if($_filter->getItemsCount()): ?>
  12. <?php $__tcc=$this->__($_filter->getName());?>
  13. <dt class="<?php echo "up_dt".$__tcc;?>">
  14. <?php echo $__tcc;?>
  15. </dt>
  16. <dd class="<?php echo "up_dd".$__tcc;?>">
  17. <?php echo $_filter->getHtml() ?>
  18. </dd>
  19. <?php endif; ?>
  20. <?php endforeach; ?>
  21. </dl>
  22. <script type="text/javascript">decorateDataList('narrow-by-list')<script>
  23. <?php endif; ?>
  24. </div>
  25. </div>
  26. <?php endif; ?>

URL: http://www.magentocommerce.com/boards/viewthread/28220/P30/#t268687

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.