Jump to content

[solved] Changing block / module title in frontend


attosoft

Recommended Posts

it's a categories block module. You must open modules/blockcategories directory and open the blockcategories.tpl file

 

you can find out there code like i post below:

 

<!-- Block categories module -->
<div id="categories_block_left" class="block">
<h4 class="title_block">{l s='Categories' mod='blockcategories'}</h4>
<div class="block_content">
 <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}
 {/foreach}
 </ul>
 {* Javascript moved here to fix bug #PSCFI-151 *}
 <script type="text/javascript">
 // <![CDATA[
  // we hide the tree only if JavaScript is activated
  $('div#categories_block_left ul.dhtml').hide();
 // ]]>
 </script>
</div>
</div>
<!-- /Block categories module -->

 

you must edit this line:

 

<h4 class="title_block">{l s='Categories' mod='blockcategories'}</h4>

 

Carefully edit s='Categories' value.

 

that's all

 

in some cases you must have force compilation turned to on to see any changes in tpl files. Here's the tutorial about turning FC to on: How to turn force compilation to on in prestashop

 

hope it helps you :)

Link to comment
Share on other sites

I don't want to modify the code, becouse later there's maybe some errors, when i'll change the language.

Maybe you have miss something...

 

Go to admin section > Localization > Translations and select Translate installed modules.. then expand all (from a language.. english, romanian.. etc.)

 

Good luck, mister.. Take care :)

Link to comment
Share on other sites

  • 4 years later...

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...