Hello guys!
I will like to add extra options on main menu, but also keep current "category menu" items,
I need to add two extra options. like "Contact us" , "About us"
I already have the pages with their URL key. but Im wondering how and where should I add these new options.
best regards to all!
this post is very similar, but does not address this challenge…
8 answers
you need to add here in this folder app\design\frontend\default\jm_mozanistemplate\ca talognavigationtop.phtml
before this code
Code:
</ul>
there will be 2 instance of the code where you have to add the New link twice both in IF and ELSE
Code:
<li > <a < href="<?php echo $this->getUrl('') ?>" title="contactus"><span>Contact Us</span></a> </li>
Note: If you Find my Post useful please click on the Thanks Icon
It did works!
Now I just need to move it rigth next the last option on the menu, or at least near to make it look like its part of the normal menu..
here is the code I have, and a pic of the last thing I need.
thank you.
<?php if ( $tmpTools->getParam("ja_menu", ‘css’) == "css" ) { ?>
<div class="header-nav-container<?php if ($tmpTools->isHomepage()): echo "-hilite"; endif; ?> inner">
<div class="header-nav">
<h4 class="no-display"><?php echo $this->__(‘Category Navigation:’) ?></h4>
<ul id="nav" class="clearfix">
<li <?php echo $homecls;?>>
<a <?php echo $homecls;?> href="<?php echo $this->getUrl(”) ?>" title="Home"><span>Home</span></a>
</li>
<?php foreach ($this->getStoreCategories() as $_category): ?>
<?php echo $this->drawItem($_category) ?>
<?php endforeach ?>
<?php if ( $tmpTools->getParam("usertool_color", ‘4’) == "4" ) : ?>
<li class="level0 parent" onmouseout="toggleMenu(this,0)" onmouseover="toggleMenu(this,1)" >
<a href="#"><span>Mozanis’s Color</span></a>
<?php echo $tmpTools->genToolMenu ($tmpTools->getParam(‘usertool_color’),’txt’); ?>
</li>
<?php endif; ?>
<li >
<a < href="<?php echo $this->getUrl(‘contacto’) ?>" title="contacto"><span>Contactenos</span></a>
</li>
</ul>
</div>
<?php echo $this->getChildHtml(‘topLeftLinks’) ?>
</div>
<?php }else { ?>
<div onmouseout="rollbackCurrentMenu()" class="header-nav-container<?php if ($tmpTools->isHomepage()): echo "-hilite"; endif; ?> inner">
<div class="header-nav">
<h4 class="no-display"><?php echo $this->__(‘Category Navigation:’) ?></h4>
<ul id="nav" class="clearfix">
<li <?php echo $homecls;?>>
<a <?php echo $homecls;?> href="<?php echo $this->getUrl(”) ?>" title="Home" onmouseover="hideAllMenu();"><span>Home</span></a>
</li>
<?php $i=0; foreach ($this->getStoreCategories() as $_category): ?>
<?php echo $jaMenuObj->extendDrawParentItem($_category, 0, false, $i); $i++; ?>
<?php endforeach ?>
<?php if ( $tmpTools->getParam("usertool_color", ‘4’) == "4" ) : ?>
<li id="parent_menu9999" class="level0 parent" onmouseout="toggleMenu(this,0);" onmouseover="toggleMenu(this,1); hideAllMenu(); displayChildMenu(‘9999’); " >
<a href="#"><span>Mozanis’s Color</span></a>
</li>
<?php endif; ?>
<li >
<a < href="<?php echo $this->getUrl(‘contacto’) ?>" title="contacto"><span>Contactenos</span></a>
</li>
</ul>
</div>
<?php echo $this->getChildHtml(‘topLeftLinks’) ?>
</div>
Attachment 21674
Replace with this code
Code:
<?php if ( $tmpTools->getParam("ja_menu", 'css') == "css" ) { ?> <div class="header-nav-container<?php if ($tmpTools->isHomepage()): echo "-hilite"; endif; ?> inner"> <div class="header-nav"> <h4 class="no-display"><?php echo $this->__('Category Navigation:') ?></h4> <ul id="nav" class="clearfix"> <li <?php echo $homecls;?>> <a <?php echo $homecls;?> href="<?php echo $this->getUrl('') ?>" title="Home"><span>Home</span></a> </li> <?php foreach ($this->getStoreCategories() as $_category): ?> <?php echo $this->drawItem($_category) ?> <?php endforeach ?> <?php if ( $tmpTools->getParam("usertool_color", '4') == "4" ) : ?> <li class="level0 parent" onmouseout="toggleMenu(this,0)" onmouseover="toggleMenu(this,1)" > <a href="#"><span>Mozanis's Color</span></a> <?php echo $tmpTools->genToolMenu ($tmpTools->getParam('usertool_color'),'txt'); ?> </li> <?php endif; ?> <li> <a href="<?php echo $this->getUrl('contacto') ?>" title="contacto"><span>Contactenos</span></a> </li> </ul> </div> <?php echo $this->getChildHtml('topLeftLinks') ?> </div> <?php }else { ?> <div onmouseout="rollbackCurrentMenu()" class="header-nav-container<?php if ($tmpTools->isHomepage()): echo "-hilite"; endif; ?> inner"> <div class="header-nav"> <h4 class="no-display"><?php echo $this->__('Category Navigation:') ?></h4> <ul id="nav" class="clearfix"> <li <?php echo $homecls;?>> <a <?php echo $homecls;?> href="<?php echo $this->getUrl('') ?>" title="Home" onmouseover="hideAllMenu();"><span>Home</span></a> </li> <?php $i=0; foreach ($this->getStoreCategories() as $_category): ?> <?php echo $jaMenuObj->extendDrawParentItem($_category, 0, false, $i); $i++; ?> <?php endforeach ?> <?php if ( $tmpTools->getParam("usertool_color", '4') == "4" ) : ?> <li id="parent_menu9999" class="level0 parent" onmouseout="toggleMenu(this,0);" onmouseover="toggleMenu(this,1); hideAllMenu(); displayChildMenu('9999'); " > <a href="#"><span>Mozanis's Color</span></a> </li> <?php endif; ?> <li> <a href="<?php echo $this->getUrl('contacto') ?>" title="contacto"><span>Contactenos</span></a> </li> </ul> </div> <?php echo $this->getChildHtml('topLeftLinks') ?> </div>
if this did not work post your site url
Note: If you Find my Post useful please click on the Thanks Icon
NO it did not.. I also cleared the cache..
heres the site url. http://juansikaffysucs.com/tienda/index.php/
pls let me know if you need me to do something.
txs
Go to this File http://juansikaffysucs.com/tienda/sk…s/css/menu.css
Replace this code
Code:
#nav li.last { }
With
Code:
#nav li.last { float:left; }
Note: If you Find my Post useful please click on the Thanks Icon
Brilliant Chavan!
works! thanks for all!
best regards!
This is the way Magento says to add menu items…this way it doesn’t disappear with template updates, re-indexing, caching flushes etc etc…
http://www.magentocommerce.com/knowl…avigation-bar/
I think the above edits would be lost when updating the template…someone correct me if i am wrong
Hi mneese_mag,
This is the way Magento says to add menu items…this way it doesn’t disappear with template updates, re-indexing, caching flushes etc etc…
This work for me. I can add sub category and it does show on menu. I ever drag the sub category to re-index the menu item order.
Please check my screenshot.
Attachment 22461
Attachment 22462
Please check again if you are configuration correctly.
Regards
This question is now closed