emassy Posted February 21, 2015 Share Posted February 21, 2015 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 More sharing options...
fred-vinapresta Posted February 21, 2015 Share Posted February 21, 2015 Hi, replace <h4 class="title_block">{if isset($currentCategory)}{$currentCategory->name|escape}{else}{l s='Categories' mod='blockcategories'}{/if}</h4> by <h4 class="title_block">{l s='Menu' mod='blockcategories'}</h4> Link to comment Share on other sites More sharing options...
emassy Posted February 23, 2015 Author Share Posted February 23, 2015 Thanks for your swift reply! I tried that but nothing happened. The word "Categories" is still showing. I cleared the cache as well. Is there anything else that I should have done afterwards? Link to comment Share on other sites More sharing options...
shri Posted February 23, 2015 Share Posted February 23, 2015 (edited) /public_html/modules/blockcategories/translations/en.php changed the 3rd last name 'categories' to 'menu' save it and check. I changed mine from 'categories' to 'Hardware' This worked for me i hope it does for you too. All the best. Edited February 23, 2015 by shri (see edit history) Link to comment Share on other sites More sharing options...
emassy Posted February 24, 2015 Author Share Posted February 24, 2015 Thanks but I can't find en.php under the translations folder. Link to comment Share on other sites More sharing options...
shri Posted February 24, 2015 Share Posted February 24, 2015 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 Link to comment Share on other sites More sharing options...
emassy Posted February 24, 2015 Author Share Posted February 24, 2015 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 More sharing options...
emassy Posted February 24, 2015 Author Share Posted February 24, 2015 I am worried about the second recommendation. I tried to change it before under that section and it caused some kind of glitch and I had to uninstall and reinstall the cart. Link to comment Share on other sites More sharing options...
shri Posted February 24, 2015 Share Posted February 24, 2015 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 More sharing options...
shri Posted February 24, 2015 Share Posted February 24, 2015 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 More sharing options...
shri Posted February 24, 2015 Share Posted February 24, 2015 (edited) 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 February 24, 2015 by shri (see edit history) Link to comment Share on other sites More sharing options...
emassy Posted February 24, 2015 Author Share Posted February 24, 2015 (edited) I will review your last post. Edited February 24, 2015 by emassy (see edit history) Link to comment Share on other sites More sharing options...
shri Posted February 24, 2015 Share Posted February 24, 2015 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 turn force compile on and cache off in Back Office preferences/ performance if changes do not appear Link to comment Share on other sites More sharing options...
emassy Posted February 24, 2015 Author Share Posted February 24, 2015 (edited) 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 February 24, 2015 by emassy (see edit history) Link to comment Share on other sites More sharing options...
shri Posted February 24, 2015 Share Posted February 24, 2015 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 More sharing options...
emassy Posted February 24, 2015 Author Share Posted February 24, 2015 I can certainly send you the URL. Is there a way to send it to you in a private manner? Link to comment Share on other sites More sharing options...
shri Posted February 24, 2015 Share Posted February 24, 2015 Hi, I sent you a private message in your prestashop inbox. Link to comment Share on other sites More sharing options...
emassy Posted February 24, 2015 Author Share Posted February 24, 2015 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 More sharing options...
shri Posted February 24, 2015 Share Posted February 24, 2015 I understood what you are trying to do. I can help you out with this. Give me couple of hours. Once i finish my work. I will tell you what you can do to achieve this. Link to comment Share on other sites More sharing options...
emassy Posted February 24, 2015 Author Share Posted February 24, 2015 Thank you! Link to comment Share on other sites More sharing options...
PascalVG Posted February 24, 2015 Share Posted February 24, 2015 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 - 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" - Scroll down to the last item, that says 'Categories' - In the field next to it, change Categories into Menu - 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: 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 More sharing options...
PascalVG Posted February 24, 2015 Share Posted February 24, 2015 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 More sharing options...
emassy Posted February 25, 2015 Author Share Posted February 25, 2015 Thank you Pascal for your response! Link to comment Share on other sites More sharing options...
emassy Posted February 25, 2015 Author Share Posted February 25, 2015 (edited) 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 February 25, 2015 by emassy (see edit history) 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