Jump to content

[SOLVED]Change categorie


erwin2011
 Share

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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>

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More