Left Vertical Nav Bar issues

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Danielc1234
Forum Newbie
Posts: 18
Joined: Tue Jul 29, 2008 11:55 am

Left Vertical Nav Bar issues

Post 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>
Last edited by califdon on Sun Jul 26, 2009 6:08 pm, edited 1 time in total.
Reason: Moderator corrected tags to display PHP
Danielc1234
Forum Newbie
Posts: 18
Joined: Tue Jul 29, 2008 11:55 am

Re: Left Vertical Nav Bar issues

Post by Danielc1234 »

Bumping this up to see if anyone knows.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Left Vertical Nav Bar issues

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Danielc1234
Forum Newbie
Posts: 18
Joined: Tue Jul 29, 2008 11:55 am

Re: Left Vertical Nav Bar issues

Post by Danielc1234 »

Sorry, I didnt know that. I am just trying to get some help with this.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Left Vertical Nav Bar issues

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply