Dolke Posted May 27, 2013 Share Posted May 27, 2013 Hi, As you can see in attached printscreen, there are 2 products from my website. One has longer and other has shorter name but they both can be displayed in one line. On the first product Presta just cuts off big part of the name and then add "..." and in the second it just goes into the 2nd line and displays full name. Why there are 2 rules that are completely different? And more important question, how to make all names to display as 2nd product? Thank you in advance. Dean Link to comment Share on other sites More sharing options...
vekia Posted May 27, 2013 Share Posted May 27, 2013 {$product.name|escape:'htmlall':'UTF-8'|truncate:35:'...'} it's a |truncate:35:'...' function, just remove it from product-list.tpl file (or homefeatured.tpl and you will get full product name Link to comment Share on other sites More sharing options...
Dolke Posted May 27, 2013 Author Share Posted May 27, 2013 (edited) I see, thank you Vekia. I believe that I can also change value to something other then 35 and get more characters to be displayed? But then again, you can see that in the first product it didn't use 35 characters and then cut the name. Instead it just displayed a few characters and added ... sign it didn't even go to next line. Edited May 27, 2013 by Dolke (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 27, 2013 Share Posted May 27, 2013 you can increase value of truncate param, try with it Link to comment Share on other sites More sharing options...
Dolke Posted May 27, 2013 Author Share Posted May 27, 2013 (edited) I changed parameter to 300 but it is still not working ok. Check this page for example: http://www.dekom.co....eri-za-ve-maine Do I need to do something after I made this change? Edited May 27, 2013 by Dolke (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 27, 2013 Share Posted May 27, 2013 link you pasted doesnt work you have to be sure, that you edit correct .tpl file and correct truncate usualy in .tpl files are many truncate functions (for product name in alt="" tag etc.) Link to comment Share on other sites More sharing options...
parsifal Posted May 30, 2013 Share Posted May 30, 2013 I'm guessing you 're on version 1.5.x. In the Back Office, go to menu Advanced Parameters > Performance. What is the chosen value for "Template cache" parameter...? Link to comment Share on other sites More sharing options...
Dolke Posted May 30, 2013 Author Share Posted May 30, 2013 (edited) Sorry for not replying sooner Vekia. Here is another link: http://www.dekom.co....hanicarski-alat Basically you can see this on very category page. I will try to find these other truncate functions as this one I changed is not for the product title. @parsifal Ty for taking interest in this issue. Value for that option is: Recompile templates if the files have been updated Edited May 30, 2013 by Dolke (see edit history) Link to comment Share on other sites More sharing options...
parsifal Posted May 30, 2013 Share Posted May 30, 2013 (edited) This value, while expected to behave like the last value "Always recompile" when a .tpl file has been changed, it does not always do that. I have found that sometimes it helps to manually delete the cached template files (all the *.tpl.php files in the directory /YOUR_PS_PATH/cache/smarty/cache/) Edited May 30, 2013 by parsifal (see edit history) Link to comment Share on other sites More sharing options...
Dolke Posted May 30, 2013 Author Share Posted May 30, 2013 Im not sure what that actually means... Link to comment Share on other sites More sharing options...
parsifal Posted May 30, 2013 Share Posted May 30, 2013 In other words: go to directory /YOUR_PRESTASHOP_INSTALLATION_PATH/cache/smarty/cache/, find all files that end with .tpl.php and delete them. Link to comment Share on other sites More sharing options...
Dolke Posted May 31, 2013 Author Share Posted May 31, 2013 In this folder I see bunch of other folders but not those files you are talking about. Btw, your solution Vekia worked. Thank you once again. 1 Link to comment Share on other sites More sharing options...
parsifal Posted May 31, 2013 Share Posted May 31, 2013 That's strange, I would expect something like this: :-/ Link to comment Share on other sites More sharing options...
vekia Posted May 31, 2013 Share Posted May 31, 2013 In this folder I see bunch of other folders but not those files you are talking about. Btw, your solution Vekia worked. Thank you once again. so im going to mark this thread as solved ;-) i just thought that you've got still problem with this ;/ Link to comment Share on other sites More sharing options...
Dolke Posted May 31, 2013 Author Share Posted May 31, 2013 Yes go ahead please. @perisfal Well I really don't know sir. When I go to that particular folder there are no files like you describe. Im using prestashop 1.5.4.1 which is the latest version so maybe this was fixed compering to your 1.5.x v. Link to comment Share on other sites More sharing options...
parsifal Posted May 31, 2013 Share Posted May 31, 2013 You may be right! Sorry for any confusion. Link to comment Share on other sites More sharing options...
Recommended Posts