erwin2011 Posted July 31, 2011 Share Posted July 31, 2011 Hello, I'm new with prestashop, and i want to edit the categorie collum, like this. what i have now: + dogs ----diner and i want it like this: Dogs--->diner So i want the categorie and sub like above. And i want the subcategorie image gone. I hope any one can help me.Or give me advise how to edit the categorie tree menu. Thnx. Link to comment Share on other sites More sharing options...
erwin2011 Posted August 1, 2011 Author Share Posted August 1, 2011 Can any one help me,how to change the menu. HELP PLEASE. Link to comment Share on other sites More sharing options...
vivek tripathi Posted August 1, 2011 Share Posted August 1, 2011 Replace code of category-tree-branch.tpl <li {if isset($last) && $last == 'true'}class="last"{/if}> {if isset($last) && $last == 'true'}{$parr}->{/if} <a href="{$node.link}" {if isset($currentCategoryId) && ($node.id == $currentCategoryId)}class="selected"{/if} title="{$node.desc|escape:html:'UTF-8'}">{$node.name|escape:html:'UTF-8'}</a> {if $node.children|@count > 0} <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 parr=$node.name last='true'} {else} {include file="$branche_tpl_path" node=$child parr=$child.name last='false'} {/if} {/foreach} </ul> {/if} </li> Link to comment Share on other sites More sharing options...
erwin2011 Posted August 1, 2011 Author Share Posted August 1, 2011 Replace code of category-tree-branch.tpl <li {if isset($last) && $last == 'true'}class="last"{/if}> {if isset($last) && $last == 'true'}{$parr}->{/if} <a href="{$node.link}" {if isset($currentCategoryId) && ($node.id == $currentCategoryId)}class="selected"{/if} title="{$node.desc|escape:html:'UTF-8'}">{$node.name|escape:html:'UTF-8'}</a> {if $node.children|@count > 0} <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 parr=$node.name last='true'} {else} {include file="$branche_tpl_path" node=$child parr=$child.name last='false'} {/if} {/foreach} </ul> {/if} </li> The categorie tree menu, is still the same. So the code did not help, but thnx for youre time. Link to comment Share on other sites More sharing options...
Carl Favre Posted August 1, 2011 Share Posted August 1, 2011 Hi erwin2011, Did you clear the cache + force compilation set to yes ? ? To be sure your modifications were taken into account. Link to comment Share on other sites More sharing options...
erwin2011 Posted August 1, 2011 Author Share Posted August 1, 2011 Hi erwin2011, Did you clear the cache + force compilation set to yes ? ? To be sure your modifications were taken into account. Yes i cleared the Cache and set force compilation to yes? Link to comment Share on other sites More sharing options...
erwin2011 Posted August 1, 2011 Author Share Posted August 1, 2011 Can some one help me change the settings of the category menu. From this: + Dogs ---Dinner To this: Dogs---Dinner I hope some one can help me, PLEASE I NEED HELP. Link to comment Share on other sites More sharing options...
vivek tripathi Posted August 2, 2011 Share Posted August 2, 2011 Hi erwin, I think you are replacing code of theme->category-tree-branch.tpl please change code in module->blockcategories->category-tree-branch.tpl and revert back the code of theme->category-tree-branch.tpl I think your problem will solve now Can some one help me change the settings of the category menu. From this: + Dogs ---Dinner To this: Dogs---Dinner I hope some one can help me, PLEASE I NEED HELP. Link to comment Share on other sites More sharing options...
erwin2011 Posted August 2, 2011 Author Share Posted August 2, 2011 Thnx, Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now