Jump to content

Personnaliser the blockcategories_footer


NeedZoom

Recommended Posts

Hello,

 

My objective is to personnaliser the block categories footer : i want to put some product in this block but not all my products.

 

so i think i should change this file blockcategories_footer.tpl :

<!-- Block categories module -->
<div class="blockcategories_footer">
<p class="title_block">{l s='Categories' mod='blockcategories'}</p>
<div class="category_footer" style="width:{$widthColumn}%">
<div class="list">
     <ul class="tree {if $isDhtml}dhtml{/if}">
{foreach from=$blockCategTree.children item=child name=blockCategTree}
  {if $smarty.foreach.blockCategTree.last}
	{include file="$branche_tpl_path" node=$child last='true'}
	{else}
	{include file="$branche_tpl_path" node=$child}
 {/if}
		
 {if ($smarty.foreach.blockCategTree.iteration mod $numberColumn) == 0 AND !$smarty.foreach.blockCategTree.last}
</ul>
</div>
</div>

<div class="category_footer" style="float:left;clear:none;width:{$widthColumn}%">
<div class="list">
	<ul class="tree {if $isDhtml}dhtml{/if}">
			{/if}
			{/foreach}
	</ul>
</div>
</div> 
<br class="clear"/>
</div>

post-751228-0-70993600-1390836998_thumb.png

Link to comment
Share on other sites

i strart with this , but  error "Erreur HTTP 500 (Internal Server Error)" 

<div class="blockcategories_footer">
<p class="title_block">{l s='Categories' mod='blockcategories'}</p>
<div class="category_footer" style="width:{$widthColumn}%">
    <div class="list">
        <ul class="tree dhtml">
        <li >Shop </li>
        
        </ul>
    </div>
</div>
<br class="clear"/>
</div>        
Link to comment
Share on other sites

I find the solution , The Block categories_footer.tpl file :

<!-- Block categories module -->
<div class="blockcategories_footer">
	<h4>Catégories</h4>
<div class="category_footer" style="float:left;clear:none;width:100%">
<div style="float:left" class="list">
<ul class="tree dynamized" style="">
	<li> Ipods </li>
    <li> <a href="{$base_dir}.." title="">name1</a> </li>
    <li> <a href="{$base_dir}.." title="">name2</a> </li>
</ul>
</div>
</div>
<br class="clear">
</div>
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...