Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
Vertical category menu
 
Paulus
Jr. Member
 
Total Posts:  20
Joined:  2008-07-21
 

Edit: never mind, fixed.

 
Magento Community Magento Community
Magento Community
Magento Community
 
ManishBhatra
Jr. Member
 
Total Posts:  13
Joined:  2008-08-06
 

hi Paulus,

i have problem that i am unable to view the category list. What is the problem plz help me. i used the same procedure as written in this thread before.
Thank you in advance.

 
Magento Community Magento Community
Magento Community
Magento Community
 
sixtyonedesign
Jr. Member
 
Total Posts:  6
Joined:  2008-08-11
 

Hi, can someone assist with a detailed description on how to post the menu on the homepage as well as category pages?

 
Magento Community Magento Community
Magento Community
Magento Community
 
shamone
Jr. Member
 
Avatar
Total Posts:  14
Joined:  2008-07-09
 

Hi

I used this example from Peter Hamilton to build a vertical menu on magento 1.0 like this: http://magento.maetvaplanet.com/index.php/

It works fine in magento 1.1.3, except that it shows up below the ‘SHOP BY’, ‘COMPARE’, ‘MY CART’ layered navigation.

Any ideas on how I can move it to sit at the very top of the left-hand-side column?

 
Magento Community Magento Community
Magento Community
Magento Community
 
StainesUK
Jr. Member
 
Avatar
Total Posts:  11
Joined:  2007-10-26
Surrey
 

Worked perfectly so a huge hat tip to Peter Hamilton

Like shamone I would like to move the menu above my cart

Any ideas ???
Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
winterradio
Member
 
Total Posts:  36
Joined:  2008-02-01
 

To move it to the top of the column add before="-" in catalog.xml

<!--
Category default layout
-->

    <
catalog_category_default>
        <
reference name="left">
            <
block type="catalog/navigation" before="-" name="catalog.vertnav" template="catalog/navigation/vert_nav.phtml"/>
            <
block type="catalog/navigation" name="catalog.leftnav" after="currency" template="catalog/navigation/left.phtml"/>
        </
reference>

<!--
Category layered navigation layout
-->

    <
catalog_category_layered>
        <
reference name="left">
            <
block type="catalog/navigation" before="-" name="catalog.vertnav" template="catalog/navigation/vert_nav.phtml"/>
            <
block type="catalog/layer_view" name="catalog.leftnav" after="currency" template="catalog/layer/view.phtml"/>
        </
reference>

Hope that helps

 
Magento Community Magento Community
Magento Community
Magento Community
 
Dave Walker
Jr. Member
 
Avatar
Total Posts:  16
Joined:  2008-07-22
 

Hi Folks,

Like many here I’m thankful to Peter for posting his bit of code.  I have it working but am still struggling to get it onto my Home Page.

I see that the category.xml is changed for other pages but not the home page.

Can anyone explain exactly which XML and PHTML files I have to change for the homepage?

Many thanks,

Dave

 
Magento Community Magento Community
Magento Community
Magento Community
 
AngelEyes
Member
 
Total Posts:  35
Joined:  2008-02-25
 

Thanks to Peter for posting that code, looks very useful.

Could you or anyone please help me with a much simpler version? I need a vertical menu that shows the categories and sub categories (2 levels) in a vertical array.

Basically I am re-building this site in Magento: http://www.hideout-leather.co.uk/ and want to retain the familiar navigation method.

Happy to pay for time smile

Many thanks.

Adam

 
Magento Community Magento Community
Magento Community
Magento Community
 
fjaeker
Jr. Member
 
Total Posts:  1
Joined:  2008-09-10
 

I have created a vertical navigation for a new shop like the way it is described here. This works perfectly to browse in the categories. But i have a curious problem with the product detail page:
The navigation shows only the first-level categrories on the detail page. So the getStoreCategories()-Function gives back the expected results. But all other functions to get the levels deeper like getChildren() or getCurrentChildCategories() gives no results back.

What I have to do to get all categories on the detail page, too??

Thanks for any advice.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Quiddity
Jr. Member
 
Total Posts:  8
Joined:  2008-06-13
 

I have integrated the Peter Hamilton vertical menu and it seems to be working alright except for a few minor problems.

It displays categories that are set as inactive, it won’t display the name of the category but i will still generate a drop down button.

Has anyone run into the same problem? if so please advice.

Thx in advance

 
Magento Community Magento Community
Magento Community
Magento Community
 
Quiddity
Jr. Member
 
Total Posts:  8
Joined:  2008-06-13
 

Thought i should share…

Previously i had placed into action Peter Hamilton’s Vertical menu, but had ran into difficulties when a category was set to inactive. But i have been able to fix that.

Just insert the following code where commented in the vert_nav.phtml

<div class="vertical-nav-container box base-mini">
    <
div id="vertical-nav">
        <
div class="head">
            <
h4><?php echo $this->__('Categories'?></h4>
        </
div>
        <
ul id="nav_vert">
            
<?php foreach ($this->getStoreCategories() as $_category): ?>


// *************** verifies category is active
            
<?php if ($_category->getIsActive()) { ?> 
// ***************
            
<?php $open $this->isCategoryActive($_category); ?>
            <?php $potential 
$_category->hasChildren(); ?>
            
<li><a href="<?php echo $this->getCategoryUrl($_category); ?>"<?php if($openecho ' class="open"'} ?><?php if($potentialecho ' class="potential"'} ?> ><?php if($potential&&$openecho 'v 'elseif($potentialecho '> '}else{ echo '  '}?><?php echo $_category->getName();?></a>
                
<?php if ($open && $potential): ?>
                
<ul>
                    
<?php foreach ($_category->getChildren() as $subcategory): ?>
                    <?php $subCat 
Mage::getModel('catalog/category')->load($subcategory); ?>
                    <?php $open 
$this->isCategoryActive($subCat); ?>
                    <?php $potential 
$subCat->hasChildren(); ?>
                    
<li><a href="<?php echo $this->getCategoryUrl($subCat); ?>"<?php if($openecho ' class="subopen"'} ?><?php if($potentialecho ' class="potential"'} ?><?php if(!$potential&&$openecho ' class="final"'} ?> ><?php if($potential&&$openecho 'v 'elseif($potentialecho '> '}?><?php echo $subCat->getName(); ?></a>
                        
<?php if ($open && $potential): ?>
                        
<ul>
                            
<?php foreach ($subcategory->getChildren() as $subsubcategory): ?>
                            <?php $subsubCat 
Mage::getModel('catalog/category')->load($subsubcategory); ?>
                            <?php $open 
$this->isCategoryActive($subsubCat?>
                            
<li><a href="<?php echo $this->getCategoryUrl($subsubCat); ?>" <?php if($openecho ' class="final"'} ?>><?php echo $subsubCat->getName(); ?></a></li>
                            
<?php endforeach; ?>
                        
</ul>
                        
<?php endif; ?>
                    
</li>
                    
<?php endforeach; ?>
                
</ul>
                
<?php endif; ?>
            
</li>
// *************** end verifies category is active
            
<?php } ?>
// ***************
            
<?php endforeach ?>
        
</ul>
    </
div>
</
div>

Hope this helps.

 
Magento Community Magento Community
Magento Community
Magento Community
 
spmcmorrow
Jr. Member
 
Total Posts:  6
Joined:  2008-09-05
 

I have some of these examples working for vertical menu, but the one thing it won’t do is use my styles.  I used an example from an earlier post and created a left_menu1.phtml file and referenced it in the xml.  I know it uses it, because it shows vertical and has my text in it, but it changes the classes.  when i look at it in firebug, the <li> code looks like this

<li class="level2 nav-electronics-cameras-accessories">
355<a href="http://www.marinabayonlakelanierbackup.com/magento/index.php/electronics/cameras/accessories"><span>Accessories</span></a>
356</li>

below is my code in the left_head1.phtml

<div id="left-column">

<h2 id="left-column">shop by category</h2>

<ul id="left-column">
<?php foreach ($this->getStoreCategories() as $_category): ?>

<li id="left-column"><?php echo $this->drawItem($_category) ?></li>
<?php endforeach ?>
</ul>

</div>

 
Magento Community Magento Community
Magento Community
Magento Community
 
bleez
Jr. Member
 
Total Posts:  2
Joined:  2008-08-05
 

Hi,
I would like to develop a vertical menu like that the kind is here: http://www.autofittings.co.uk/
What kind of codes is needed to stick and where? The essence, that if I scroll over the category let the sub categories show up.
would somebody be able to provide a little direction?

Thanks for it ahead!

 
Magento Community Magento Community
Magento Community
Magento Community
 
tEnErD
Jr. Member
 
Total Posts:  2
Joined:  2008-08-04
 

Any idea how to get number of items in each category? ( Like in layered navigation)

EDIT: solved for subcatand subsubCat:  $subCat->getProductCount()

 
Magento Community Magento Community
Magento Community
Magento Community
 
Naresh Vajawat
Jr. Member
 
Total Posts:  27
Joined:  2008-09-22
 

Lorenzo,

This is exactly what i am looking for. Were you able to successfully implement it. Moreover I didn’t want the same to come in other pages as the other pages will have layered navigation . In the home page i want to have a left menu that will diplay all the categories and their subcategories with their product count in a single column. Let me know if you have any suggestions.

Thanks,
Naresh

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
50124 users|478 users currently online|102260 forum posts