Vote to Improve PrestaShop

PrestaShop Forum: Build a free online shop. Count on the Community!

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum: Build a free online shop. Count on the Community!

Jump to content

 
Photo

adding categories to the header bar?

header bar categories

  • Please log in to reply
15 replies to this topic
hadlowj

    PrestaShop Apprentice

  • Members
  • PipPip
  • 48 posts

Posted 16 September 2012 - 11:11 PM

How does one go about adding categories to the header bar it only say Home at the moment, I did manage to get one extra one on there but now no more will add, I removed it and tried to add it again but if does not show?

Thanks
James

clayton29657

    PrestaShop Addict

  • Members
  • PipPipPip
  • 646 posts

Posted 16 September 2012 - 11:19 PM

Hey hadlowj,

What version of prestashop are you using? Are you adding categories through your admin back office?

hadlowj

    PrestaShop Apprentice

  • Members
  • PipPip
  • 48 posts

Posted 16 September 2012 - 11:29 PM

1.5 and yes through back office.

Edited by hadlowj, 16 September 2012 - 11:29 PM.


clayton29657

    PrestaShop Addict

  • Members
  • PipPipPip
  • 646 posts

Posted 16 September 2012 - 11:43 PM

and you do not see the add a new sub-category page right under home tab?

hadlowj

    PrestaShop Apprentice

  • Members
  • PipPip
  • 48 posts

Posted 16 September 2012 - 11:48 PM

I see in the back office, catalog > categories > New, add a new one, then if you mouse over Home on the front office its in the drop down but before i got it to show next to the Home.

clayton29657

    PrestaShop Addict

  • Members
  • PipPipPip
  • 646 posts

Posted 16 September 2012 - 11:51 PM

hmmm thats an odd issue can you take a screen shot so I can see. I never had this issue before.

hadlowj

    PrestaShop Apprentice

  • Members
  • PipPip
  • 48 posts

Posted 16 September 2012 - 11:55 PM

screen

Attached Files



clayton29657

    PrestaShop Addict

  • Members
  • PipPipPip
  • 646 posts

Posted 17 September 2012 - 12:17 AM

hmmm now that is very weird. and you had the category before beside it? Make sure youre on the home page making the category and not the sub-page

When you are on home page and make the sub-category it should put it right beside it. I have no clue why its doing this I would recommend waiting till someone can help you more. Sorry I couldn't be of more help my friend.

Clayton

Edited by clayton29657, 17 September 2012 - 12:18 AM.


the.rampage.rado

    PrestaShop Apprentice

  • Members
  • PipPip
  • 288 posts

Posted 17 September 2012 - 12:24 AM

The horizontal top menu is a module and it's configured manually for each language.

You have to find the module and decide which categories/external links/etc to add there.

hadlowj

    PrestaShop Apprentice

  • Members
  • PipPip
  • 48 posts

Posted 17 September 2012 - 12:27 AM

thats weird, because before I just installed a fresh prestshop, added the category and it showed next to it, then another and it showed, but the third did not nor the fourth, then deleted all the ones i had made and tried again bust this time none of them showed next to it. Any idea on what the module is called?

Thanks again

the.rampage.rado

    PrestaShop Apprentice

  • Members
  • PipPip
  • 288 posts

Posted 17 September 2012 - 12:40 AM

Top horizontal menu .... maybe... :D

Jumbojet

    PrestaShop Newbie

  • Members
  • Pip
  • 17 posts

Posted 23 October 2012 - 08:49 PM

I am experiencing the same difficulty. Please, any help out there?

sshare

    PrestaShop Apprentice

  • Members
  • PipPip
  • 101 posts

Posted 12 November 2012 - 12:06 PM

BO > Modules > Modules > Top Horizontal Menu > Configure

There you can add almost anything from the rest of your shop to the horizontal menu bar as you please.

everythingdog

    PrestaShop Newbie

  • Members
  • Pip
  • 16 posts

Posted 15 March 2013 - 11:54 PM

BO > Modules > Modules > Top Horizontal Menu > Configure

There you can add almost anything from the rest of your shop to the horizontal menu bar as you please.


this

tkmops

    PrestaShop Newbie

  • Members
  • Pip
  • 12 posts

Posted 22 April 2013 - 07:22 PM

I've tried everything that this post says to do(and other posts also), but I can't get the 'Categories', 'Products', or 'About Us' drop-down menus to appear. This is how it's supposed to look....http://themes.withinpixels.com/autumn/. This is my site now.... http://www.popcultureheaven.com/. I've added 4 categories(see site map)...I need the 4 'Books' categories to appear under a 'Categories' drop-down menu on the home page. Thanks!

Manik

    PrestaShop Newbie

  • Members
  • Pip
  • 18 posts

Posted 24 May 2013 - 10:53 AM

Hi tkmops,

override
modules/blocktopmenu/blocktopmenu.php
i.e. copy this file to
/themes/<your themefolder="">/modules/blocktopmenu/blocktopmenu.php</your>
then find the function getCategory()
at the end of this function, add a little code (red lines): at line number 647
if (count($children))
{
if ($category->level_depth <= 1) // 1 is level you still want to show
{

$this->_menu .= '<ul>';

foreach ($children as $child)
$this->getCategory((int)$child['id_category'], (int)$id_lang, (int)$child['id_shop']);

$this->_menu .= '</ul>';
}
}
$this->_menu .= '</li>';


This should do the trick.

Hope this helps,





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users