Left Vertical Nav Bar issues
Posted: Sun Jul 26, 2009 2:38 pm
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.
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:bookmarkus('SnoozerPetBeds.com','http://www.SnoozerPetBeds.com')" title="Bookmark This Site">Bookmark This Site</a></div>
</div>
</div>
</div>