Magento Questions Answered By Magento Experts

 

Welcome Guest. Sign in or Signup

24 Answers

Insert main category in menu tab.

Asked by: 4562 views ,
Questions

Hello,
here is my website.

www.shitjemeshumice.com

I have entered everything but as you can see at the top the categories show on my logo.
How can i place those 2 categories under a main menu link?
Can they appear as in under the tab SHOP in the theme:

http://m.ndgsf.com/?___store=universalshop

Thank you.

24 Answers



  1. EcommerceDeveloper on Jun 20, 2010 Reply

    Hello,

    Yes you can. Just wrap the
    <ul id=”nav” />
    with
    <li class=”d8navlinks” ><li>
    in top navigation template.

    0 Votes Thumb up 0 Votes Thumb down 0 Votes



  2. emiliano on Jun 20, 2010 Reply

    to be honest i do understand the code that you are saying but I am not quite sure about on which file i should apply that.

    Would you please let me know where I can place that script?

    Thank you.

    0 Votes Thumb up 0 Votes Thumb down 0 Votes



  3. Magento Expert on Jun 21, 2010 Reply

    It looks like maybe you didn’t create your categories properly – make sure that your store is set with the appropriate root category. Here is more info on that:

    Magento: how to properly setup categories

    +2 Votes Thumb up 2 Votes Thumb down 0 Votes



  4. emiliano on Jun 22, 2010 Reply

    No no,
    I did set up all the categories and they do show up all of them.
    The only issue is with the buttons.
    This theme has those buttons that appear and they are showing up in the correct area.

    You can see the website at http://www.shitjemeshumice.com
    and you can see that the categories are there.
    But on the logo (upper right area) there are 2 buttons- (veshje and elektronike)
    Those are the 2 main categories and they appear as buttons but are not showing with the other buttons- I guess it is a design questions rather than a magento question.

    Thank you very much for your help.

    +3 Votes Thumb up 3 Votes Thumb down 0 Votes



  5. EcommerceDeveloper on Jun 22, 2010 Reply

    You should edit catalog/navigation/top.phtml file, and there you should perform changes which I explained in the previous answer.

    0 Votes Thumb up 0 Votes Thumb down 0 Votes



  6. emiliano on Jun 24, 2010 Reply

    Hello,

    i changed it from here
    /www/wwwshitjemeshumicecom/app/design/frontend/default/universalshop/template/catalog/navigation

    and nothing happened.

    I just uploaded the regular file in order to not create any other issues.

    Any other suggestions?

    THank you.

    0 Votes Thumb up 0 Votes Thumb down 0 Votes



  7. emiliano on Jun 25, 2010 Reply

    Hello again.

    i went into : /www/wwwshitjemeshumicecom/app/design/frontend/default/
    universalshop/template/catalog/navigation

    I found top.phtml

    i opened it with notepad and i found

    Which i replaced with

    but nothing happened.

    Can you help me on that?

    0 Votes Thumb up 0 Votes Thumb down 0 Votes



  8. emiliano on Jun 25, 2010 Reply

    Hello,

    I did all the changes that you asked for and that is what I got.

    http://www.shitjemeshumice.com

    The categories show all over the place now.

    0 Votes Thumb up 0 Votes Thumb down 0 Votes



  9. emiliano on Jun 26, 2010 Reply

    I just brought it to its previous condition.

    But would you be able to show me how to place the category buttons that appear on the logo below a menu tab?

    Thanks

    0 Votes Thumb up 0 Votes Thumb down 0 Votes



    • EcommerceDeveloper on Jun 30, 2010 Reply

      Please post the content of top.phtml file here and I’ll correct it to proper displaying of dropdown menu.

      0 Votes Thumb up 0 Votes Thumb down 0 Votes



  10. emiliano on Jul 02, 2010 Reply

    Thank you very much…

    0 Votes Thumb up 0 Votes Thumb down 0 Votes



  11. emiliano on Jul 02, 2010 Reply

    \php
    /**
    * Magento
    *
    * NOTICE OF LICENSE
    *
    * This source file is subject to the Academic Free License (AFL 3.0)
    * that is bundled with this package in the file LICENSE_AFL.txt.
    * It is also available through the world-wide-web at this URL:
    * http://opensource.org/licenses/afl-3.0.php
    * If you did not receive a copy of the license and are unable to
    * obtain it through the world-wide-web, please send an email
    * to license@magentocommerce.com so we can send you a copy immediately.
    *
    * DISCLAIMER
    *
    * Do not edit or add to this file if you wish to upgrade Magento to newer
    * versions in the future. If you wish to customize Magento for your
    * needs please refer to http://www.magentocommerce.com for more information.
    *
    * @category design_default
    * @package Mage
    * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
    * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
    */
    ?>

    \php
    /**
    * Top menu for store
    *
    * @see Mage_Catalog_Block_Navigation
    */
    ?>

    Faqja Kryesore

    Sherbime

    Rreth Nesh

    Na Kontaktoni

    getStoreCategories() as $_category): ?>
    drawItem($_category) ?>

    getLayout()->createBlock(‘cms/block’)->setBlockId(‘footer_links’)->toHtml() ?>

    0 Votes Thumb up 0 Votes Thumb down 0 Votes



  12. emiliano on Jul 02, 2010 Reply

    Sorry for the wrong way of pasting it here…

    I do not know how to better place the script here…

    0 Votes Thumb up 0 Votes Thumb down 0 Votes



  13. EcommerceDeveloper on Jul 03, 2010 Reply

    Admin, please clean up the answers with broken content! Thanks in advance.

    0 Votes Thumb up 0 Votes Thumb down 0 Votes



  14. emiliano on Jul 03, 2010 Reply

    I hope that will work.

    <?php
    /**
    * Magento
    *
    * NOTICE OF LICENSE
    *
    * This source file is subject to the Academic Free License (AFL 3.0)
    * that is bundled with this package in the file LICENSE_AFL.txt.
    * It is also available through the world-wide-web at this URL:
    * http://opensource.org/licenses/afl-3.0.php
    * If you did not receive a copy of the license and are unable to
    * obtain it through the world-wide-web, please send an email
    * to license@magentocommerce.com so we can send you a copy immediately.
    *
    * DISCLAIMER
    *
    * Do not edit or add to this file if you wish to upgrade Magento to newer
    * versions in the future. If you wish to customize Magento for your
    * needs please refer to http://www.magentocommerce.com for more information.
    *
    * @category design_default
    * @package Mage
    * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
    * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
    */
    ?>
    <?php
    /**
    * Top menu for store
    *
    * @see Mage_Catalog_Block_Navigation
    */
    ?>

    <ul class="d8-links">
    <li class="d8navlinks"><a class="homelink" href="/home">Faqja Kryesore</a></li>

    <li class="d8navlinks"><a class="homelink" href="/Sherbime">Sherbime</a></li>

    <li class="d8navlinks"><a class="homelink" href="/about-us">Rreth Nesh</a></li>

    <li class="d8navlinks"><a class="homelink" href="/contacts">Na Kontaktoni</a></li>
    <!– Drop Down Navigation –>
    <ul id="nav"/>
    <?php foreach ($this->getStoreCategories() as $_category): ?>
    <?php echo $this->drawItem($_category) ?>
    <?php endforeach ?>
    </ul>

    </li>
    </ul>

    <div class="d8-cmslinks">
    <?php echo $this->getLayout()->createBlock(‘cms/block’)->setBlockId(‘footer_links’)->toHtml() ?>
    </div>

    0 Votes Thumb up 0 Votes Thumb down 0 Votes



  15. emiliano on Jul 03, 2010 Reply

    I hope that will work:

    <?php
    /**
    * Magento
    *
    * NOTICE OF LICENSE
    *
    * This source file is subject to the Academic Free License (AFL 3.0)
    * that is bundled with this package in the file LICENSE_AFL.txt.
    * It is also available through the world-wide-web at this URL:
    * http://opensource.org/licenses/afl-3.0.php
    * If you did not receive a copy of the license and are unable to
    * obtain it through the world-wide-web, please send an email
    * to license@magentocommerce.com so we can send you a copy immediately.
    *
    * DISCLAIMER
    *
    * Do not edit or add to this file if you wish to upgrade Magento to newer
    * versions in the future. If you wish to customize Magento for your
    * needs please refer to http://www.magentocommerce.com for more information.
    *
    * @category design_default
    * @package Mage
    * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
    * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
    */
    ?>
    <?php
    /**
    * Top menu for store
    *
    * @see Mage_Catalog_Block_Navigation
    */
    ?>

    <ul class="d8-links">
    <li class="d8navlinks"><a class="homelink" href="/home">Faqja Kryesore</a></li>

    <li class="d8navlinks"><a class="homelink" href="/Sherbime">Sherbime</a></li>

    <li class="d8navlinks"><a class="homelink" href="/about-us">Rreth Nesh</a></li>

    <li class="d8navlinks"><a class="homelink" href="/contacts">Na Kontaktoni</a></li>
    <!– Drop Down Navigation –>
    <ul id="nav"/>
    <?php foreach ($this->getStoreCategories() as $_category): ?>
    <?php echo $this->drawItem($_category) ?>
    <?php endforeach ?>
    </ul>

    </li>
    </ul>

    <div class="d8-cmslinks">
    <?php echo $this->getLayout()->createBlock(‘cms/block’)->setBlockId(‘footer_links’)->toHtml() ?>
    </div>

    Thank you for your help

    0 Votes Thumb up 0 Votes Thumb down 0 Votes



  16. EcommerceDeveloper on Jul 03, 2010 Reply

    Try these changes:

    Faqja Kryesore
    Sherbime
    Rreth Nesh
    Na Kontaktoni
    Store Categories

    getStoreCategories() as $_category): ?>
    drawItem($_category) ?>

    getLayout()->createBlock(‘cms/block’)->setBlockId(‘footer_links’)->toHtml() ?>

    0 Votes Thumb up 0 Votes Thumb down 0 Votes



  17. EcommerceDeveloper on Jul 03, 2010 Reply

    I’ve forgotten to encode characters in previous message.
    Try these changes:

    <?php
    /**
    * Magento
    *
    * NOTICE OF LICENSE
    *
    * This source file is subject to the Academic Free License (AFL 3.0)
    * that is bundled with this package in the file LICENSE_AFL.txt.
    * It is also available through the world-wide-web at this URL:
    * http://opensource.org/licenses/afl-3.0.php
    * If you did not receive a copy of the license and are unable to
    * obtain it through the world-wide-web, please send an email
    * to license@magentocommerce.com so we can send you a copy immediately.
    *
    * DISCLAIMER
    *
    * Do not edit or add to this file if you wish to upgrade Magento to newer
    * versions in the future. If you wish to customize Magento for your
    * needs please refer to http://www.magentocommerce.com for more information.
    *
    * @category design_default
    * @package Mage
    * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
    * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
    */
    ?>
    <?php
    /**
    * Top menu for store
    *
    * @see Mage_Catalog_Block_Navigation
    */
    ?>
    <ul class="d8-links">
    <li class="d8navlinks"><a class="homelink" href="/home">Faqja Kryesore</a></li>
    <li class="d8navlinks"><a class="homelink" href="/Sherbime">Sherbime</a></li>
    <li class="d8navlinks"><a class="homelink" href="/about-us">Rreth Nesh</a></li>
    <li class="d8navlinks"><a class="homelink" href="/contacts">Na Kontaktoni</a></li>
    <li class="d8navlinks" onmouseover="toggleMenu(this,1)" onmouseout="toggleMenu(this,0)">Store Categories
    <!� Drop Down Navigation �>
    <ul id="nav"/>
    <?php foreach ($this->getStoreCategories() as $_category): ?>
    <?php echo $this->drawItem($_category) ?>
    <?php endforeach ?>
    </ul>
    </li>
    </ul>
    <div class="d8-cmslinks">
    <?php echo $this->getLayout()->createBlock(‘cms/block’)->setBlockId(‘footer_links’)->toHtml() ?>
    </div>

    0 Votes Thumb up 0 Votes Thumb down 0 Votes



  18. EcommerceDeveloper on Jul 03, 2010 Reply

    Something wrong with characters on this website :(

    0 Votes Thumb up 0 Votes Thumb down 0 Votes



    • Magento Expert on Jul 06, 2010 Reply

      Yes we’re working on revamping the formatting. We’ll update the site as soon as possible. Thanks for understanding.

      0 Votes Thumb up 0 Votes Thumb down 0 Votes



  19. emiliano on Jul 03, 2010 Reply

    LOL
    is just another language.
    LOL

    You got shocked ….:)

    0 Votes Thumb up 0 Votes Thumb down 0 Votes


Answer Question