Page 1 of 1

Left Vertical Nav Bar issues

Posted: Sun Jul 26, 2009 2:38 pm
by Danielc1234
Hi all. I have a left nav bar that is not working properly. I want the main categories to show and then below that catagory the subs.
But what is happening is, whatever page I'm on, it is displaying the full menu under each main category.

This is the site that is having the problems
http://www.snoozerpetbeds.com

This is what is should look like.
http://www.lifeguard-chairs.com

I would appreciate any help where I am very new to php and this is very confusing to me.

Here is the php code that is generating the left nav.

Code: Select all

<?php 
/**
 * Top menu for store
 *
 * @see Mage_Catalog_Block_Navigation
 */
?>
<div class="vertical-nav-container">
<div class="block-content">
 
<?php $_categories=$this->getCurrentChildCategories() ?>
 
    <?php foreach ($this->getStoreCategories() as $_category): ?>
    <?php if (! $_category->getIsActive()) continue; ?>
    <div class="vertical-nav">
        <div class="header">
            <h4><a href="<?php echo $this->getCategoryUrl($_category) ?>"><?php echo $this->htmlEscape($_category->getName()) ?></a></h4>
        </div>
        <ul class="content">
 
                    <?php foreach ($_categories as $_category): ?>
                        <?php if($_category->getIsActive()): ?>
                        <li>
                            <a href="<?php echo $this->getCategoryUrl($_category) ?>"<?php if ($this->isCategoryActive($_category)): ?> class="active"<?php endif ?>><?php echo $this->htmlEscape($_category->getName()) ?></a>
                        </li>
                        <?php endif; ?>
                    <?php endforeach ?>
            
        </ul>
        <div class="footer-menu"></div>
    </div>
    <?php endforeach; ?>
    
    <div class="customerservice-box">
    <span class="cs-box-heading">Customer Service</span>
      <div class="little-box">
            <b>Assistance:</b><br />
            7AM - 9PM EST, Mon - Fri<br />
            Call: <b>1-888-883-3113</b> or <br />
        <a rel="nofollow" href="http://www.snoozerpetbeds.com/contacts/">Email Us</a> <br />
      <a rel="nofollow" href="javascript&#058;bookmarkus('SnoozerPetBeds.com','http://www.SnoozerPetBeds.com')" title="Bookmark This Site">Bookmark This Site</a></div>
      </div> 
</div>
</div>

Re: Left Vertical Nav Bar issues

Posted: Mon Jul 27, 2009 10:35 am
by Danielc1234
Bumping this up to see if anyone knows.

Re: Left Vertical Nav Bar issues

Posted: Mon Jul 27, 2009 10:47 am
by pickle
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:4. All users of any level are restricted to bumping (as defined here) any given thread within twenty-four (24) hours of its last post. Non-trivial posts are not considered bumping. A bump post found in violation will be deleted, and you may or may not receive a warning. Persons bumping excessively be considered as spammers and dealt with accordingly.

Re: Left Vertical Nav Bar issues

Posted: Mon Jul 27, 2009 10:49 am
by Danielc1234
Sorry, I didnt know that. I am just trying to get some help with this.

Re: Left Vertical Nav Bar issues

Posted: Mon Jul 27, 2009 11:08 am
by pickle
It's going to be very difficult for us to help, as the code is using Magento functions & methods. Not that that's a bad thing - just that it's difficult for us to pinpoint where the problem is. You might have better luck on a Magento forum.