Jump to content

[Solved] Remove link from main categories


Recommended Posts

ALMOST SOLVED with some information from "badjoker" and time.
1st step – edit file ‘category-tree-branch.tpl’, located in yourshop/modules/blockcategories/

replace

{$node.name|escape:htmlall:'UTF-8'} 



with

{$node.name|escape:htmlall:'UTF-8'} 



2rd step – edit file’global.css’, located in yourshop/themes\prestashop\css\modules\blockcategories.css

remove or comment classes

{*
#categories_block_left span.grower {
   display: block;
   float: left;
   background-position: 0 3px;
   background-repeat: no-repeat;
   width: 9px;
   height: 15px;
   margin: 0 0 0 -12px!important;
   margin: 0 0 0 -8px;
   padding: 0
}

#categories_block_left span.OPEN { background-image: url('../../../img/icon/less.gif') }
#categories_block_left span.CLOSE { background-image: url('../../../img/icon/more.gif') }*}



Hope it helps someone.

Link to comment
Share on other sites

Sorry, is not solved.
It looks good and is not opening the main categories as I wanted but the proble is that is not opening the subcategories either.
This is the code for:

>
{$node.name|escape:html:'UTF-8'}
   {if $node.children|@count > 0}
</pre>
<ul>
       {foreach from=$node.children item=child name=categoryTreeBranch}
           {if isset($smarty.foreach.categoryTreeBranch) && $smarty.foreach.categoryTreeBranch.last}
               {include file="$branche_tpl_path" node=$child last='true'}
           {else}
               {include file="$branche_tpl_path" node=$child last='false'}
           {/if}
       {/foreach}
</ul>
<br>   {/if



Does anyone know how to achieve this?
Thanks in advance

Link to comment
Share on other sites

I want the parent category (like ‘iPod’) top open the menu and not go to the page with subs.
So basically I want the parentcategory to behave like the ‘+’ and ‘-’, open/close the tree.
Any ideas?
Link to comment
Share on other sites

It looks that everyone is gone...
I would appreciate a lot if someone may have a look at that code and let the categories not to work as a link but just open subcategories and off course subcategories to open up the products on it that is exactly what isn't working is the methos I used ontop.
I would appreciate any comments,please

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...