Jump to content

How to change the name "Categories" to "Menu"?


Recommended Posts

Hello,

I would like to change the name "Categories" to "Menu" in Prestashop 1.6.  After reading some postings I went to modules-->blockcategories-->blockcategories.tpl but was wondering which exact wording will need to be changed?  Thank you!

Link to comment
Share on other sites

Hmm... Ok I know of another way. Maybe it works i am not 100% sure. 

BackOffics->Localization->Translations

 

Type of translation choose - Installed module translations

Select theme- for me it is default-bootstrap

Select language - English 

 

Click modify

 

find the BlockCategories module

 

Change the last item in the list Categories- Menu (in my case i had hardware).

Save and check

 

post-908574-0-18862200-1424745007_thumb.png

post-908574-0-92979400-1424745068_thumb.png

Link to comment
Share on other sites

Regarding your first recommendation, is this where the en.php file is supposed to be under?

 

/prestashop/modules/blockcategories/translations

 

The only file I see there is index.php.  Could en.php be located elsewhere?  By the way, I am using 1.6.0.11

Link to comment
Share on other sites

1.    /public_html/modules/blockcategories/translations/en.php

 

and 

 

2.     /public_html/themes/default-bootstrap/modules/blockcategories/translations/en.php

 

for me both have same data. But i remember changing the 1st option. Let me see you are allowed to create a file en.php on your own and place it in that folder or not. I will confirm it in few minutes.

Link to comment
Share on other sites

Also try this 

 

modules/blockcategories/ and edit blockcategories.tpl 

<h4 class="title_block">{if isset($currentCategory)}{$currentCategory->name|escape}{else}{l s='Categories' mod='blockcategories'}{/if}</h4>

Just change the word Categories to Menu

Link to comment
Share on other sites

Hi, Just confirming that you may have to create en.php if it is not there in 

 

 /public_html/modules/blockcategories/translations/

Here's what information it has....Copy th following as it is and save it as en.php . Upload it via ftp to above given location.  REmember to change the name 'Categories' to menu in last third option  before uploading.

 

 

<?php

 
global $_MODULE;
$_MODULE = array();
$_MODULE['<{blockcategories}prestashop>blockcategories_footer_af1b98adf7f686b84cd0b443e022b7a0'] = 'Categories';
$_MODULE['<{blockcategories}prestashop>blockcategories_8f0ed7c57fca428f7e3f8e64d2f00918'] = 'Categories block';
$_MODULE['<{blockcategories}prestashop>blockcategories_15a6f5841d9e4d7e62bec3319b4b7036'] = 'Adds a block featuring product categories.';
$_MODULE['<{blockcategories}prestashop>blockcategories_b15e7271053fe9dd22d80db100179085'] = 'This module need to be hooked in a column and your theme does not implement one';
$_MODULE['<{blockcategories}prestashop>blockcategories_23e0d4ecc25de9b2777fdaca3e2f3193'] = 'Maximum depth: Invalid number.';
$_MODULE['<{blockcategories}prestashop>blockcategories_0cf328636f0d607ac24a5c435866b94b'] = 'Dynamic HTML: Invalid choice.';
$_MODULE['<{blockcategories}prestashop>blockcategories_f4f70727dc34561dfde1a3c529b6205c'] = 'Settings';
$_MODULE['<{blockcategories}prestashop>blockcategories_1379a6b19242372c1f23cc9adedfcdd6'] = 'Category root';
$_MODULE['<{blockcategories}prestashop>blockcategories_19561e33450d1d3dfe6af08df5710dd0'] = 'Maximum depth';
$_MODULE['<{blockcategories}prestashop>blockcategories_971fd8cc345d8bd9f92e9f7d88fdf20c'] = 'Dynamic';
$_MODULE['<{blockcategories}prestashop>blockcategories_00d23a76e43b46dae9ec7aa9dcbebb32'] = 'Enabled';
$_MODULE['<{blockcategories}prestashop>blockcategories_b9f5c797ebbf55adccdd8539a65a0241'] = 'Disabled';
$_MODULE['<{blockcategories}prestashop>blockcategories_6b46ae48421828d9973deec5fa9aa0c3'] = 'Sort';
$_MODULE['<{blockcategories}prestashop>blockcategories_54e4f98fb34254a6678f0795476811ed'] = 'By name';
$_MODULE['<{blockcategories}prestashop>blockcategories_883f0bd41a4fcee55680446ce7bec0d9'] = 'By position';
$_MODULE['<{blockcategories}prestashop>blockcategories_06f1ac65b0a6a548339a38b348e64d79'] = 'Sort order';
$_MODULE['<{blockcategories}prestashop>blockcategories_e3cf5ac19407b1a62c6fccaff675a53b'] = 'Descending';
$_MODULE['<{blockcategories}prestashop>blockcategories_cf3fb1ff52ea1eed3347ac5401ee7f0c'] = 'Ascending';
$_MODULE['<{blockcategories}prestashop>blockcategories_5f73e737cedf8f4ccf880473a7823005'] = 'How many footer columns would you like?';
$_MODULE['<{blockcategories}prestashop>blockcategories_c9cc8cce247e49bae79f15173ce97354'] = 'Save';
$_MODULE['<{blockcategories}prestashop>blockcategories_af1b98adf7f686b84cd0b443e022b7a0'] = 'Categories';
$_MODULE['<{blockcategories}prestashop>blockcategories_admin_c69d9eead832257f587f7c9ec0026fe2'] = 'You can upload a maximum of 3 images.';
$_MODULE['<{blockcategories}prestashop>blockcategories_admin_acc66e14d297c1bfc20986bf593cb054'] = 'Thumbnails';
Edited by shri (see edit history)
Link to comment
Share on other sites

i forgot to mention

 

Also try this 

 

modules/blockcategories/ and edit blockcategories.tpl 

<h4 class="title_block">{if isset($currentCategory)}{$currentCategory->name|escape}{else}{l s='Categories' mod='blockcategories'}{/if}</h4>

Just change the word Categories to Menu

 

I forgot to mention

 to turn force compile on and cache off in Back Office preferences/ performance   :D  

turn force compile on and cache off in Back Office preferences/ performance if changes do not appear  :) 

Link to comment
Share on other sites

I did the following but not change:

 

1) I added the new en.php file under /modules/blockcategories/translations (I switched the name to "Menu")

 

2) Under modules/blockcategories/blockcategories.tpl I switched the following:

 

FROM:

 

<h4 class="title_block">{if isset($currentCategory)}{$currentCategory->name|escape}{else}{l s='Categories' mod='blockcategories'}{/if}</h4>

 

TO:

 

<h4 class="title_block">{if isset($currentCategory)}{$currentCategory->name|escape}{else}{l s='Menu' mod='blockcategories'}{/if}</h4>

 

3.  I selected the following Under PREFERENCED / PERFORMANCE / SMARTY:

 

Force Compilation - SELECTED

Cache - NO

 

I noticed there are two other files (blockcategories_footer.tpl and blockcategories_top.tpl). Should they be revised as well?

Edited by emassy (see edit history)
Link to comment
Share on other sites

Oh that does not sound good. 

 

blockcategories_footer.tpl and blockcategories_top.tpl can be changed too if you wish to change the title 'categories in the footer as well. I do not have categories displayed in footer.

 

Are you able to send me your site url? 

Link to comment
Share on other sites

Perhaps, you might have a solution to what I am trying to accomplish.  The reason why I am trying to change the name "Categories" to "Menu" is because I want create custom pages under that the revised "Menu" name (e.g. "Products", "Quality", "Promos", "News", etc..) and have links for each custom page in the Top nav bar.  These custom pages would not be considered categories that is why I want to change the name to "Menu".

Link to comment
Share on other sites

Hi emassy,

 

Prestashop has a feature to 'Translate' your texts into another language (even more languages, if your site supports more languages)

 

Go to back office->Localization->Translations

post-455771-0-99421600-1424758011_thumb.png

 

- Select Installed Modules Translations

- Select Your theme

- Select the language you want to translate (If just 'other wordings' in English, choose English)

- click the 'Modify' button at the lower right hand side of the screen

 

 

- Almost at the top of the page you see the button "Close all Fieldsets". Click on it.

- The text changes to Expand all Fieldsets". Click on it.

 

- Go to the block with header "Module BlockCategories"

post-455771-0-09107400-1424758095_thumb.png

 

- Scroll down to the last item, that says 'Categories'

 

- In the field next to it, change Categories into Menu

post-455771-0-16064500-1424758177_thumb.png

 

- Save the changes and go to the Front page.

- Refresh the page (Ctrl-F5 (Windows)/Cmd-R (Mac))

If everything is allright, it should now say menu:

post-455771-0-79679700-1424758244_thumb.png

 

 

You can change more words in similar way, like in Emails, other pages, back office etc. Sometimes you may need to search for the right item, as there may be more with the same name. (Like 'categories' may be displayed at other places, which may have to be renamed separately, but in similar way)

 

Hope this helps,

pascal.

Link to comment
Share on other sites

P.S. Sometimes you may get an error when opening the translations page with an error about max_input_vars. You may need to increase this value in the php settings before it can open the translation page.

 

More about this here:

https://www.prestashop.com/forums/topic/237143-solved-translate-front-office-increase-max-input-vars/

 

FYI,

pascal.

Link to comment
Share on other sites

After changing the name from "Categories" to "Menu" and saving it the following occurred:

 

1- the Categories section went missing altogether (no longer showing in the footer, mobile view, etc..)

 

2- the Top Horizontal Menu module is missing under the Modules section.

 

3- all the module names have gone missing under the Positions section.

 

The same thing happened to me before (before originally placing this post). I had to uninstalling Prestashop and re-installing it.

 

This may be a bug in Prestashop because all I did is change the name to "Menu" and clicked the save button.

Edited by emassy (see edit history)
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...