Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

layered navigatgion with brand listing
 
pejotr
Jr. Member
 
Total Posts:  3
Joined:  2009-02-22
 

Hi,
i have a problem with setting layered navigation. I have a non-standard categories design, here is what is it look lika:

+ Default Category
| -+ Cameras
|----+ Canon
|----+ Nikon
|----+ Sony
|-+ Computers
|----+ Asus
|----+ Gigabyte

and so on. When I enter Cameras category I have listed brands, so for photo there are 3 fields. And afret selecting a field the are products form selected brand.
What i want to achive is to enable Layered Navigation after selectin Cameras category. So that when someone enter photo cateogory, he or she can filter all products whitin Cameras by CCD size for instance. I have set Photo as anchor but it’s not enough.
Page that list brands is static bloc, here is a code:

{{block type="catauthors/navigation" name="subcategories2" template="catalog/category/list-subs.phtml" }}

and list-subs.phtml is:

<div class="center">
<
div class="works" style="margin-top: 15px;max-width: 500px;float: left;">
         <
table>
         <
tr>
<?php $i=0; foreach(Mage::getModel('catauthors/category')->getCurrentChildCategories() as $_category): 
if(
$i%3==&& $i!=0) echo '</tr><tr>';
    if(
$_category->getIsActive()):?>    
    <?php 
if($_category->getImage()): ?>      
    <?php $imagePath 
=  $_category->getImage() ?>
      <?php 
else: ?>
      <?php $imagePath 
$this->getSkinUrl('images/placeholder.gif'?>
      <?php 
endif ?>

   
<td>
           <
div class="work">
             <
div class="work-img" style="border: 0px;width: 234px;">    
              <
a href="<?php echo $this->getCategoryUrl($_category)?>">
                  <
img src="<?php echo Mage::getBaseUrl('media').'catalog/category/'.$imagePath; ?>" style="width: 232px;" />
              </
a>
                
               </
div>
            <
div class="work-desc" style="margin-top: -3px;">
                   <
span class="work-title">
                   
<?php echo $this->htmlEscape($_category->getName())?>
                
</span>
                <
span class="work-bottom">
                <
a href="<?php echo $this->getCategoryUrl($_category)?>" class="more">
                     <
img src="/skin/frontend/default/agitatto/images/more.png" alt="agitatto" />
                     <
span><?$this->__('More')?></span>
                     </
a>
                     <
span class="work-price">
                      
<?php echo $this->__('From')?> 
                      <?php 
if($mp Mage::getModel('catauthors/category')->getMinimalPrice($_category)) 
                              echo 
Mage::helper('core')->currency($mp->getPrice(), truefalse);
                                  echo 
$mp->getMinimalPrice();
                                echo 
$mp->getProduct();
                      
?>
                  
</span>
                   </
span>
              </
div>
         </
div>
  </
td>

  
<?php $i++; endif; ?>

<?php  
endif; endforeach ?>
</tr>
</
table>
</
div>
</
div>

Something like this but with layered navogation: http://demo.magentocommerce.com/electronics

EDIT1: I added layer navidation to page I wanted and set custom attribute CCD SIZE to be seen in layer navigation, but
it shows that none products have it set. How to inform layered navigation about products ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Adjustware
Guru
 
Avatar
Total Posts:  654
Joined:  2009-05-11
 

Have you refreshed the layered navigation cache ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
MageClub
Guru
 
Avatar
Total Posts:  386
Joined:  2009-07-25
India
 

Hi..
I need the same thing..
How do we do this ?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top