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
 
liquidkrep
Jr. Member
 
Total Posts:  4
Joined:  2008-06-04
 

I have got the left menu to work but when I go to product detail, there isn’t a left menu. So, is there any way to keep the menu stationery throughout the whole site.

thanks in advance.

 
Magento Community Magento Community
Magento Community
Magento Community
 
vesvello
Member
 
Total Posts:  32
Joined:  2007-12-01
 

How can I add a vertical menu in the home page?

 
Magento Community Magento Community
Magento Community
Magento Community
 
alexlopez
Jr. Member
 
Total Posts:  1
Joined:  2008-06-22
 

I would like to know how to show the list of categories on the left side on home page like http://www.greenstone.maori.nz/ does.

Thank you in advance.

Image Attachments
Dibujo.JPG
 
Magento Community Magento Community
Magento Community
Magento Community
 
schmelzgeist
Sr. Member
 
Total Posts:  92
Joined:  2008-05-27
Marzipane World Capital (Lübeck, Germany)
 
liquidkrep - 19 June 2008 12:12 PM

I have got the left menu to work but when I go to product detail, there isn’t a left menu. So, is there any way to keep the menu stationery throughout the whole site.

thanks in advance.

change the catalog.xml in the catalog_product_view section in the ‘root’ reference to the template where you use the vertical navigation:

<catalog_product_view>
        <!-- 
Mage_Catalog -->

        <
reference name="root">
            <
action method="setTemplate"><!-- change here --><template>page/your-template-with-nav.phtml</template><!--end change--></action>
        </
reference>
        <
reference name="head">
            <
action method="addJs"><script>varien/product.js</script></action>
        </
reference>
        <
reference name="content">
            <
block type="catalog/product_view" name="product.info" template="catalog/product/view.phtml">
                <
block type="catalog/product_view_media" name="product.info.media" as="media" template="catalog/product/view/media.phtml"/>
                <
block type="core/text_list" name="alert.urls" as="alert_urls" />
                <
block type="catalog/product_list_upsell" name="product.info.upsell" as="upsell_products" template="catalog/product/list/upsell.phtml"/>
                <
block type="catalog/product_view_additional" name="product.info.additional" as="product_additional_data" />
            </
block>
        </
reference>
        <
reference name="right">
            <
block type="catalog/product_list_related" name="catalog.product.related" before="-" template="catalog/product/list/related.phtml"/>
        </
reference>
    </
catalog_product_view>

that should do it.for the product view, anyway, smile

 Signature 

WE have no future because our Present is too volatile.We have only riskmanagement.
The spinning of the given moment´s scenario. *Pattern Recognition.W.Gibson*

 
Magento Community Magento Community
Magento Community
Magento Community
 
schmelzgeist
Sr. Member
 
Total Posts:  92
Joined:  2008-05-27
Marzipane World Capital (Lübeck, Germany)
 

has anybody a clue how to use this menu with the same dropdownmenu like the top nav?  The Design i’m currently working on is not so flexible to acommodate a collapsible menu. furthermore, i want this dropdownmenu just for one Category , any ideas? smile

 Signature 

WE have no future because our Present is too volatile.We have only riskmanagement.
The spinning of the given moment´s scenario. *Pattern Recognition.W.Gibson*

 
Magento Community Magento Community
Magento Community
Magento Community
 
Flotec
Jr. Member
 
Total Posts:  6
Joined:  2008-05-04
Sweden Stockholm
 

Hello,

I’m having some problems with the navigation on the left side. I’m using the instructions originally posted by Peter Hamilton in this thread.

After having done all the steps (3 total) I get a parser error (shown below) when I try to look at the page.

Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 60: parser error : error parsing attribute name in /home/flotecma/public_html/mag/app/code/core/Mage/Core/Model/Layout/Update.php on line 276

Trace:
#0 /home/flotecma/public_html/mag/app/code/core/Mage/Core/Model/Layout/Update.php(276): mageCoreErrorHandler(2, ‘simplexml_load_...’, ‘/home/flotecma/...’, 276, Array)

#1 /home/flotecma/public_html/mag/app/code/core/Mage/Core/Model/Layout/Update.php(302): Mage_Core_Model_Layout_Update->fetchFileLayoutUpdates(’

Any ideas?
Thankful for any help.

 
Magento Community Magento Community
Magento Community
Magento Community
 
davinder
Member
 
Total Posts:  52
Joined:  2008-06-26
 

The menu works great for me but is there a way to show this vertical menu on home page?

 
Magento Community Magento Community
Magento Community
Magento Community
 
schmelzgeist
Sr. Member
 
Total Posts:  92
Joined:  2008-05-27
Marzipane World Capital (Lübeck, Germany)
 
davinder - 29 June 2008 02:18 PM

The menu works great for me but is there a way to show this vertical menu on home page?

Yes, just use the Templatefile for the home page where you put your menu smile

 Signature 

WE have no future because our Present is too volatile.We have only riskmanagement.
The spinning of the given moment´s scenario. *Pattern Recognition.W.Gibson*

 
Magento Community Magento Community
Magento Community
Magento Community
 
SparxDesign
Jr. Member
 
Total Posts:  16
Joined:  2008-06-18
 

Hi Everyone!!

Can this vertical menu be used for MODERN THEME?

Please let me know if it can… And how?

Add me on on MSN, or email me if you can help. I want a vertical menu for the categories but am using modern theme for the design.

I may have to use the original if this will not work!

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
bobbrodie
Member
 
Total Posts:  56
Joined:  2008-04-02
 

This menu is exactly what I’m looking for, but I ran into one problem: On the home page there is a category that has classes subopen and final attached to it even though it’s not selected. Any idea why something like that would happen?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Dudu
Jr. Member
 
Total Posts:  3
Joined:  2008-07-26
 

How can I add a vertical menu in the home page ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
gtex
Jr. Member
 
Total Posts:  1
Joined:  2008-07-23
 

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’s a good workin vertical menu with category and sub-category.

But after an update to magento1.1 this vertical menu not display sub-category like this: http://magento11.maetvaplanet.com/index.php/pagemenu

Someone had an idea what is wrong?
Thank you

Peter Hamilton - 15 June 2008 02:47 PM

Hi all, I dont know how far everone has got with the vertical category navigation as i started it as a toy project a day or two ago when i saw this thread.

here is what i have so far, it does a menu from your categories and creates it 3 levels deep (more could be added). The advantage is that only the theme files are being changed, no magento system files (mage etc).

layout (catalog.xml)
Added the following to the <default> ..code.. </default> section

<reference name="left">
        <
block type="catalog/navigation" name="catalog.vertnav" template="catalog/navigation/vert_nav.phtml" />
    </
reference>

added a file called vert_nav.phtml in app/design/frontend/[yourinterface]/[yourtheme]/template/catalog/navigation/ with the following code
<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): ?>
            <?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>
            
<?php endforeach ?>
        
</ul>
    </
div>
</
div>

 
Magento Community Magento Community
Magento Community
Magento Community
 
pdxwebhead
Jr. Member
 
Total Posts:  11
Joined:  2008-07-16
Portland Oregon
 

Hi,

I am in the same situation, my sub-menu’s are not displaying in 1.1 either.

 Signature 

Learning Magento one mistake at a time....

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

Thank you, it help me a lot.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Paulus
Jr. Member
 
Total Posts:  20
Joined:  2008-07-21
 
pdxwebhead - 29 July 2008 07:21 AM

Hi,

I am in the same situation, my sub-menu’s are not displaying in 1.1 either.

How about now in 1.1.2?

 
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
52317 users|473 users currently online|105648 forum posts