Magento Questions Answered By Magento Experts

 

Sign in | Signup

24 Answers

Insert main category in menu tab.

Asked by: emiliano 2364 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. 0 Votes Thumb up 0 Thumb down 0

    EcommerceDeveloper on Jun 20, 2010

    Hello,

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

    reply


  2. 0 Votes Thumb up 0 Thumb down 0

    emiliano on Jun 20, 2010

    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.

    reply


  3. +1 Votes Thumb up 1 Thumb down 0

    Magento Expert on Jun 21, 2010

    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

    reply


  4. +3 Votes Thumb up 3 Thumb down 0

    emiliano on Jun 22, 2010

    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.

    reply


  5. 0 Votes Thumb up 0 Thumb down 0

    EcommerceDeveloper on Jun 22, 2010

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

    reply


  6. 0 Votes Thumb up 0 Thumb down 0

    emiliano on Jun 24, 2010

    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.

    reply


  7. 0 Votes Thumb up 0 Thumb down 0

    emiliano on Jun 25, 2010

    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?

    reply


  8. 0 Votes Thumb up 0 Thumb down 0

    emiliano on Jun 25, 2010

    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.

    reply


  9. 0 Votes Thumb up 0 Thumb down 0

    emiliano on Jun 26, 2010

    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

    reply


    • 0 Votes Thumb up 0 Thumb down 0

      EcommerceDeveloper on Jun 30, 2010

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

      reply


      • 0 Votes Thumb up 1 Thumb down 1

        emiliano on Jul 02, 2010

        Faqja Kryesore

        Sherbime

        Rreth Nesh

        Na Kontaktoni

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

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



  10. 0 Votes Thumb up 0 Thumb down 0

    emiliano on Jul 02, 2010

    Thank you very much…

    reply


  11. 0 Votes Thumb up 0 Thumb down 0

    emiliano on Jul 02, 2010

    \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() ?>

    reply


  12. 0 Votes Thumb up 0 Thumb down 0

    emiliano on Jul 02, 2010

    Sorry for the wrong way of pasting it here…

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

    reply


  13. 0 Votes Thumb up 0 Thumb down 0

    EcommerceDeveloper on Jul 03, 2010

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

    reply


  14. 0 Votes Thumb up 0 Thumb down 0

    emiliano on Jul 03, 2010

    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>

    reply


  15. 0 Votes Thumb up 0 Thumb down 0

    emiliano on Jul 03, 2010

    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

    reply


  16. 0 Votes Thumb up 0 Thumb down 0

    EcommerceDeveloper on Jul 03, 2010

    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() ?>

    reply


  17. 0 Votes Thumb up 0 Thumb down 0

    EcommerceDeveloper on Jul 03, 2010

    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>

    reply


  18. 0 Votes Thumb up 0 Thumb down 0

    EcommerceDeveloper on Jul 03, 2010

    Something wrong with characters on this website :(

    reply


    • 0 Votes Thumb up 0 Thumb down 0

      Magento Expert on Jul 06, 2010

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

      reply


  19. 0 Votes Thumb up 0 Thumb down 0

    emiliano on Jul 03, 2010

    LOL
    is just another language.
    LOL

    You got shocked ….:)

    reply

Answer Question

Please use <code> </code> tags to display code.