jeyjoo Posted January 28, 2012 Share Posted January 28, 2012 Hi, I run PS 1.4.6.2. Problem: on hovering over the left column category block, the pop-up text displayed is the category description (which is often 400+ chars - too long). This should display the category name (which is just 20 chars or so). Anyone know how to make this change? Much appreciated. Excuse the long link - site in development - http://it.jeyjoo.com/avc/prestashop/it/7-saponi-provenzali-naturali. The site is in Italian, but sure you can get the jist! Link to comment Share on other sites More sharing options...
CartExpert.net Posted January 30, 2012 Share Posted January 30, 2012 Hello! You need to edit 'modules/blockcategories/category-tree-branch.tpl'. Change $node.desc to $node.name . Don't forget to recompile the template. If you don't know how to do that, you can visit http://www.cartexpert.net/content/8-prestashop-tricks-and-tips and check 'Prestashop tip of 15th November 2011' Link to comment Share on other sites More sharing options...
jeyjoo Posted January 30, 2012 Author Share Posted January 30, 2012 Hello! You need to edit 'modules/blockcategories/category-tree-branch.tpl'. Change $node.desc to $node.name . Don't forget to recompile the template. If you don't know how to do that, you can visit http://www.cartexper...tricks-and-tips and check 'Prestashop tip of 15th November 2011' Actually CE. that is exactly what I have done, with no luck. I have been editing the css and the tpl files in dreamweaver, with no problems. This particular file does not edit. Link to comment Share on other sites More sharing options...
CartExpert.net Posted January 30, 2012 Share Posted January 30, 2012 What do you mean by 'This particular file does not edit.' ? Link to comment Share on other sites More sharing options...
jeyjoo Posted January 30, 2012 Author Share Posted January 30, 2012 What do you mean by 'This particular file does not edit.' ? My mistake - the file does "edit", but changes do not filter through to the site. I edited the template in Dreamweaver (like I have done with all other files). I changed $node.desc to $node.name several days ago, but the actual description is still provided on hover over. Actually I just checked on ther server, and the title attribute is $node.name. Would this be a PHP issue? Link to comment Share on other sites More sharing options...
CartExpert.net Posted January 30, 2012 Share Posted January 30, 2012 Did you recompile the template? Did you turn off cache? If yes, and changes still don't appear, you should check if the template is overriden or not. Link to comment Share on other sites More sharing options...
jeyjoo Posted January 30, 2012 Author Share Posted January 30, 2012 Did you recompile the template? Did you turn off cache? If yes, and changes still don't appear, you should check if the template is overriden or not. Did you recompile the template? Did you turn off cache? If yes, and changes still don't appear, you should check if the template is overriden or not. Ok so if I turned off cache problem gone... was it just a cache issue then? Link to comment Share on other sites More sharing options...
CartExpert.net Posted January 30, 2012 Share Posted January 30, 2012 Yes, that's all. Link to comment Share on other sites More sharing options...
jeyjoo Posted January 31, 2012 Author Share Posted January 31, 2012 Yes, that's all. Actually, I dont quite follow. When I re-enable cache via admin panel, the problem reverts back. Link to comment Share on other sites More sharing options...
CartExpert.net Posted January 31, 2012 Share Posted January 31, 2012 Have you tried deleting the cached files? Link to comment Share on other sites More sharing options...
jeyjoo Posted January 31, 2012 Author Share Posted January 31, 2012 Have you tried deleting the cached files? Thats what I was wondering - tools/smarty/cache and delete all? Link to comment Share on other sites More sharing options...
CartExpert.net Posted January 31, 2012 Share Posted January 31, 2012 Yes. Link to comment Share on other sites More sharing options...
KambinatoR Posted February 9, 2012 Share Posted February 9, 2012 Have you tried deleting the cached files? Hello, same problem if i reenable cache, the problem is back. Deleted tools/smarty/cache and delete all, this does'nt solve the problem. I have enabled HTML (see link) in category description and on hover have something like this <p><strong>bla <strong> <br> bla bla.....<> Now i have disabled cache. Have no other solution Link to comment Share on other sites More sharing options...
CartExpert.net Posted February 9, 2012 Share Posted February 9, 2012 You should also try clearing your browser's cache. I have enabled HTML (see link) in category description and on hover have something like this <p><strong>bla <strong> <br> bla bla.....<> The HTML elements are displayed because they were not stripped from description. Link to comment Share on other sites More sharing options...
KambinatoR Posted February 14, 2012 Share Posted February 14, 2012 You should also try clearing your browser's cache. The HTML elements are displayed because they were not stripped from description. Celaning cache doesn't help. See here (you haven't visited my site so you don't have chache, but you will see html elements when hover categories) Link to comment Share on other sites More sharing options...
CartExpert.net Posted February 14, 2012 Share Posted February 14, 2012 Have you cleared the browser's cache? Not smarty's cache, the browser's cache. I do not see any HTML elements when I am hovering on the categories. I see only the category names. Link to comment Share on other sites More sharing options...
jeyjoo Posted February 14, 2012 Author Share Posted February 14, 2012 Celaning cache doesn't help. See here (you haven't visited my site so you don't have chache, but you will see html elements when hover categories) Just visited your site @Kambinator (for the first time) and see your problem too. If I hover over "Terminale de inventariere," I get a pile of HTML code pop up. This seems a different coding issue though. My problem is that it does not show the "name", but incorrectly displays the meta tag "description". Why would you have HTML in your descirption tag? Link to comment Share on other sites More sharing options...
CartExpert.net Posted February 15, 2012 Share Posted February 15, 2012 Sorry, was looking at the wrong place. Your category-tree-branch.tpl is ok, so it should be ok. Are you sure the right file is used and is not overriden? Link to comment Share on other sites More sharing options...
jeyjoo Posted February 15, 2012 Author Share Posted February 15, 2012 Sorry, was looking at the wrong place. Your category-tree-branch.tpl is ok, so it should be ok. Are you sure the right file is used and is not overriden? I got similar prolem. Disappears if I remove cache, but immediately comes back. It is continually reading my meta description rather than meta name. Link to comment Share on other sites More sharing options...
CartExpert.net Posted February 16, 2012 Share Posted February 16, 2012 Seems like your cache isn't cleared. Link to comment Share on other sites More sharing options...
vasekcekal Posted February 27, 2012 Share Posted February 27, 2012 (edited) Please, what's the solution this problem? I have this same problem, tried all and problem is still here EDIt: Problem solved ) I give this: " title="{$node.desc|strip_tags:false|escape:html:'UTF-8'}" " into category-tree-branch.tpl and still same problem. Then I manually delete via FTP all inside tools/smarty/ cache and compile ) All is OK Edited February 27, 2012 by vasekcekal (see edit history) Link to comment Share on other sites More sharing options...
ToXxX Posted October 26, 2012 Share Posted October 26, 2012 (edited) Tested on Prestashop 1.4 I reply to this topic becouse i wasn't able to solve this problem and now i found how to do this: I was tryng to change the category-tree-branch.tpl of my theme, but I was wrong becouse I have to change the category-tree-branch.tpl of the modules/blockcategory. So: 1) From BO->Preferences deactivate the shop 2) From BO->Preferences->Performance deactivate all the caches and compile 3) Delete all the files in tools/smarty/ cache and compile 4) Change mytheme/category-tree-branch.tpl and modules/blockcategory/category-tree-branch.tpl as you wish. (For example title="{$node.name|escape:html:'UTF-8'}" instead of title="{$node.desc|escape:html:'UTF-8'}"). 5) Delete browser cache 6) Open your shop on browser 7) Deactivate compile, reactive all the caches, active shop Now all works right Edited October 26, 2012 by ToXxX (see edit history) Link to comment Share on other sites More sharing options...
devilsown Posted January 1, 2014 Share Posted January 1, 2014 is there any way to limit the output to say 200 char? Link to comment Share on other sites More sharing options...
vekia Posted January 1, 2014 Share Posted January 1, 2014 you can use modifier: |truncate:200 for variable in title="" tag Link to comment Share on other sites More sharing options...
Palido Posted January 30, 2014 Share Posted January 30, 2014 I don't see any hover effect on my categories? www.palido.at/palidoshop Can i somehow activate it? Link to comment Share on other sites More sharing options...
vekia Posted January 30, 2014 Share Posted January 30, 2014 you've got it: 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