Barry1877 Posted July 4, 2013 Share Posted July 4, 2013 Hi Can anyone point me in the correct direction to making the short description longer. In the theme I am using it appears to limit to 117 characters and when I turn on the default theme it is 500. I set the max size of short description in the back office to 500, however this seems to have no bearing on my theme. It looks like I have to modify some of the files manually...but which ones???? Many Thanks Barry Link to comment Share on other sites More sharing options...
Martin Uker K Posted July 4, 2013 Share Posted July 4, 2013 Hello, It depends on the page you are trying to edit. Exemple: If you are trying to change the description length in the featured-product module, you need to change the homefeatured.tpl (by overriding it in your theme) and find the place where it says "truncate:XXX" and change the "XXX" to your characters limits. The truncate is a number defined by the module / theme and may change depending the page or module page. Truncate is a Smarty functionnality, documentation can be found : http://www.smarty.net/docs/en/language.modifier.truncate.tpl Best regards, Martin P.S. Sorry for my english, it ain't quite perfect yet! Link to comment Share on other sites More sharing options...
vekia Posted July 4, 2013 Share Posted July 4, 2013 you're talking about descriptions on product pages? or maybe about short category descriptions? Link to comment Share on other sites More sharing options...
Barry1877 Posted July 4, 2013 Author Share Posted July 4, 2013 Hi I am talking about the description on the product pages (link) http://176.32.230.27/andersonkilts.co.uk/kilts/ghillie-outfit.html Martin...your English is good and I had no problems understanding.... I tried editing product-list tpl but without success Link to comment Share on other sites More sharing options...
cocothecat Posted July 4, 2013 Share Posted July 4, 2013 You need to do what was mentioned above but on product.tpl. Or you can remove the char limit totally giving you freedom to have a 4-5 line short description should you need it. Link to comment Share on other sites More sharing options...
Martin Uker K Posted July 4, 2013 Share Posted July 4, 2013 As cocothecat said, it's the product.tpl file, used to display all product informations. Go into the product.tpl file and find the truncate on "$product->description_short". Either erase the truncate (To always have full short_description) or change its value. The product-list.tpl is used in category.tpl, (http://176.32.230.27/andersonkilts.co.uk/kilts/ in your case). Good luck with that. Martin Link to comment Share on other sites More sharing options...
Barry1877 Posted July 4, 2013 Author Share Posted July 4, 2013 Guys....many thanks to you all...it sorted!!! Was the product.tpl file, hence when I modified product-list.tpl it did not work We live and learn Regards and thanks again Barry 1 Link to comment Share on other sites More sharing options...
vekia Posted July 4, 2013 Share Posted July 4, 2013 hello what you changed exactly? you followed instructions from second post? i marked this thread as [solved] regards Link to comment Share on other sites More sharing options...
Barry1877 Posted July 4, 2013 Author Share Posted July 4, 2013 Hi I changed the value in product.tpl from div id="short_description_content" class="rte align_justify">{$product->description_short|strip_tags:'UTF-8'|truncate:170:'...'}</div> to div id="short_description_content" class="rte align_justify">{$product->description_short|strip_tags:'UTF-8'|truncate:500:'...'}</div> Thanks Barry Link to comment Share on other sites More sharing options...
Recommended Posts