FireHawk Posted September 19, 2011 Share Posted September 19, 2011 Hi, I have some long titles for some products that when displayed will only show so many characters and then end with ... You can see it on my homepage with the featured products. The whole title wont show and i feel this puts buyers off as they have to open it up to see if the advert will suit there vehicle year. It would be nice if it was possible to force PS to make the whole title visable. Is there a way to do this at all? If not, would PS look into making this a feature choice? Cheers Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted September 19, 2011 Share Posted September 19, 2011 Hi, I have some long titles for some products that when displayed will only show so many characters and then end with ... You can see it on my homepage with the featured products. The whole title wont show and i feel this puts buyers off as they have to open it up to see if the advert will suit there vehicle year. It would be nice if it was possible to force PS to make the whole title visable. Is there a way to do this at all? If not, would PS look into making this a feature choice? Cheers Yes, there is a way to do this. Open homefeatured.tpl. In that file edit the following line: <h5><a href="{$product.link}" title="{$product.name|truncate:32:'...'|escape:'htmlall':'UTF-8'}">{$product.name|truncate:27:'...'|escape:'htmlall':'UTF-8'}</a></h5> You can either remove "trunate:27'...'" or you may change 27 to a larger number. Your call. Hope this helps! Marty Shue Link to comment Share on other sites More sharing options...
FireHawk Posted September 21, 2011 Author Share Posted September 21, 2011 Hi, Thanks for the tip. Tried making it to 50 and nothing changed. It still cuts the title of the product off. It also affects pages within the catagories, not just the home featured page. Not sure how much to remove from the line. I removed... truncate:27:'...'| and this had no affect either. Cheers Link to comment Share on other sites More sharing options...
Pshopic Posted September 23, 2011 Share Posted September 23, 2011 Did you check "Force Compile" under "Preference>>Performance"? After saving, refresh your site to see difference. Link to comment Share on other sites More sharing options...
vomitbear Posted October 10, 2011 Share Posted October 10, 2011 Did you check "Force Compile" under "Preference>>Performance"? After saving, refresh your site to see difference. FANTASTIC. that's the solution! Thank you! I searched high and low for an answer, and this was IT! I think a lot of ppl have this problem too... Link to comment Share on other sites More sharing options...
FireHawk Posted October 10, 2011 Author Share Posted October 10, 2011 Hey, Just done the force compile and refreshed and it works....ish. The full titles appear but they go over the top of the short description making it look messy and not finished properly. Is there a way to stop that happening? Also, this is just for the home page. Is there another file that is basically the same steps to do this for all products within the catagories pages? Link to comment Share on other sites More sharing options...
webplus Posted October 13, 2011 Share Posted October 13, 2011 Also, this is just for the home page. Is there another file that is basically the same steps to do this for all products within the catagories pages? You need to edit category.tpl. Link to comment Share on other sites More sharing options...
FireHawk Posted October 20, 2011 Author Share Posted October 20, 2011 Thanks for that.. Is there a way though of stopping long titles being shown on top of the short descriptions? If i extend the available characters in these files it works that the title is shown in full but it goes over the top of the short description making it look very messy and obviously not right. I'll leave my homepage set so you can see exactly what happens... www.qtmdirect2u.co.uk Cheers Chris Link to comment Share on other sites More sharing options...
FireHawk Posted October 20, 2011 Author Share Posted October 20, 2011 You need to edit category.tpl. Cannot find anywhere in category.tpl to edit size of titles. There is no "truncate" word. Is it done by something else? Link to comment Share on other sites More sharing options...
Midwesttent Posted August 9, 2014 Share Posted August 9, 2014 The file name is product-list.tpl Just change it to $product.name|truncate:60 or some such --- (60 works for me.) Link to comment Share on other sites More sharing options...
vekia Posted August 10, 2014 Share Posted August 10, 2014 yea things works almost the same even in prestashop 1.6 (note that this topic is from 2011 - a long time ago ;-) ) Link to comment Share on other sites More sharing options...
Recommended Posts