Jump to content

Remove submenu from menu?


Recommended Posts

Hi istalgas,

I'm not sure which theme you're using specifically, but if the developer has created this theme to allow you to configure it, the option will likely be in the top menu module (might have a different name though, again it depends on the individual developer).

 

I hope this helps.

 

-Mike

Link to comment
Share on other sites

Hi istalgas,

I took a quick look at that theme, and it looks like the module you should be looking for in your Back Office is called "Block top categories."

 

It may not be possible to do this with that theme, although the best way to find out for sure would be to contact the developer directly through his site.

 

-Mike

Link to comment
Share on other sites

Ok i find the module, and i have this code in category-tree-branch.tpl

 

 

 

<li class="{if isset($class)}{$class}{else}item{/if}{if $node.children|@count > 0} submenu{/if}{if isset($currentCategoryId) && ($node.id == $currentCategoryId)} selected{/if}">

<a href="{$node.link}" {if $node.level==1}class="menu"{/if} title="{$node.name|escape:html:'UTF-8'}"><span>{$node.name|escape:html:'UTF-8'}</span></a>

{if $node.children|@count > 0}

<ul class="subcategories">

{foreach from=$node.children item=child name=categoryTreeBranch}

{if isset($smarty.foreach.categoryTreeBranch) && $smarty.foreach.categoryTreeBranch.last}

{include file="$branche_tpl_path" node=$child class='last'}

{elseif isset($smarty.foreach.categoryTreeBranch) && $smarty.foreach.categoryTreeBranch.first}

{include file="$branche_tpl_path" node=$child class='first'}

{else}

{include file="$branche_tpl_path" node=$child last='false'}

{/if}

{/foreach}

</ul>

{/if}

</li>

 

 

 

there is one more file blocktopcategories.php ? any help thanks.

Link to comment
Share on other sites

  • 3 months later...

hm, I have copy of PrestaShop zip file prestashop_1.4.8.2.zip, as far as I remember I downloaded it couple days ago from this site.

But I cant find module "blocktopcategories" here also as a file what I needed =\ so, I going here and asking - may be anyone can help me.

Edited by ollorin (see edit history)
Link to comment
Share on other sites

yep, I think that is a very specific module - I have peace of it - tpl and xml files, but not php.

I tried to find full pack of this module or it's developer, but find only this theme.

This making me crazy, but I see that I must investigate and try to write this php-code myself. I'll try to do this with developer documentation from this site =\

Link to comment
Share on other sites

and last try, before I go out, 2 examples of themes with this module:

http://demo.presthemes.com/eris/

http://demo.presthemes.com/watchesis/

 

Yes, you'll want to contact the developers at presthemes to get a new copy of that file, as they are not officially affiliated with us and we do not have access to any of their content or files like we would with our own.

 

-Mike

Link to comment
Share on other sites

×
×
  • Create New...