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

Navigation - Left on all pages
 
Schroeter
Jr. Member
 
Total Posts:  4
Joined:  2010-02-03
 

I have the following Problem:
I want a vertical menu in the left column of a 2column-left.phtml layout.
It works wonderful as long as I´m on the Homepage, CMS, categories, items or the My Menu areas of the shop.
In the cart and checkout pages the left column simply dosn´t show up.
I´m pretty new to Magento and totally out of ideas.

that´s how I placed the Menu.

<?=$this->getChildHtml(\'left\')?>

Thats the Menu

<?php $_menu \'\'?>
<?php 
foreach ($this->getStoreCategories() as $_category): ?>
    <?php $_menu 
.= $this->drawItem($_category?>
<?php 
endforeach ?>
<?php 
if ($_menu): ?>
<div class=\"nav-container\">
    <
ul id=\"nav\">
    <
li ><a href=\"<?php echo $this->getUrl(\'\')?>\"><?php  echo $this->__(\'Start\'?></a></li>
        
<?php echo $_menu?>
    
</ul>
</
div>
<?php endif; ?>



<?php 
if (!Mage::registry(\'current_category\')) return ?>
<?php $_categories
=$this->getCurrentChildCategories() ?>
<?php $_count 
is_array($_categories)?count($_categories):$_categories->count(); ?>
<?php 
if($_count): ?>
<div class=\"block block-layered-nav\">
    <
div class=\"block-title\">
        <
strong><span><?php echo $this->__(\'Browse By\'?></span></strong>
    </
div>
    

        <
div class=\"block-content\">
        <
dl id=\"narrow-by-list2\">
            <
dt><?php echo $this->__(\'Category\'?></dt>
            <
dd>
                <
ol>
                
<?php foreach ($_categories as $_category): ?>
                    <?php 
if($_category->getIsActive()): ?>
                    
<li>
                        <
a href=\"<?php echo $this->getCategoryUrl($_category) ?>\"<?php if ($this->isCategoryActive($_category)): ?> class=\"current\"<?php endif; ?>><?php echo $this->htmlEscape($_category->getName()) ?></a> (<?php echo $_category->getProductCount() ?>)
                    </
li>
                    
<?php endif; ?>
                <?php 
endforeach ?>
                
</ol>
            </
dd>
        </
dl>
        <
script type=\"text/javascript\">decorateDataList(\'narrow-by-list2\')</script>
    
</div>
</
div>
<?php endif; ?>

Thanks in advance to every one how is willing to help.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Schroeter
Jr. Member
 
Total Posts:  4
Joined:  2010-02-03
 

pump

 
Magento Community Magento Community
Magento Community
Magento Community
 
nathus
Sr. Member
 
Total Posts:  93
Joined:  2008-12-13
Twin Cities, MN
 

Assuming you are using the default checkout.xml the left and right columns are removed.

<checkout_cart_index translate="label">
        <
label>Shopping Cart</label>
        <
remove name="right"/>
        <
remove name="left"/>

If you get rid of the remove left part, that might help.

 
Magento Community Magento Community
Magento Community
Magento Community
 
guelzow
Jr. Member
 
Total Posts:  11
Joined:  2010-06-07
 

I hate to use thread necromancy, but…

Is it possible to re-add something which is being removed by the base files ? I do not want to edit the page.xml, because I want to stay true to the magento design strategy guide.

A single layout file, named local.xml, where all layout updates are placed.
no layout files with the same name as any layout file in the base theme

I tried adding this to my local.xml, but had no luck

<customer_account_login>
        <
block type="core/text_list" name="left" as="left" />
</
customer_account_login>
I also tried to change the “name” and “as” tag. It looks like as if “remove” totally erases it’s victim from the template.

Karl

 
Magento Community Magento Community
Magento Community
Magento Community
 
Martin_N
Jr. Member
 
Avatar
Total Posts:  8
Joined:  2008-10-30
Germany
 

Same problem to me. The only way is to change customer.xml in base/layout. That is definitly not a good idea.

So is a Solution in sight?

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