siric Posted January 28, 2009 Share Posted January 28, 2009 When I place text in the short description box, it does not keep the formatting - carriage returns, bullets, etc. but in the long description the same text is displayed fine.Does anyone else have this issue??Thanks Link to comment Share on other sites More sharing options...
cerberus22 Posted April 6, 2009 Share Posted April 6, 2009 I have the same problem with the short descriptionDoes anybody have a fix ?All the best,Cerberus22 Link to comment Share on other sites More sharing options...
rocho Posted September 17, 2009 Share Posted September 17, 2009 I have the same problem with the short descriptionDoes anybody have a fix ?All the best,Cerberus22 did you find the solution? if yes, please share my friend Link to comment Share on other sites More sharing options...
fs_xyz Posted September 18, 2009 Share Posted September 18, 2009 I don't think product list or featured product keep the format. But product detail keep it....Maybe you people use custom themes ? Link to comment Share on other sites More sharing options...
SteveM Posted September 18, 2009 Share Posted September 18, 2009 Did you try using html code in your description?For example: This is the first line This is the second line. Followed by a third line of text = line breakI'm not sure this will work, but it's worth a try.For more information on html code visit w3schools Link to comment Share on other sites More sharing options...
rocky Posted September 18, 2009 Share Posted September 18, 2009 The line of code you need to change is line 10 of product-list.tpl in your theme directory: {$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'} Remove |strip_tags:'UTF-8' and the HTML tags won't be deleted. Link to comment Share on other sites More sharing options...
rocho Posted September 18, 2009 Share Posted September 18, 2009 The line of code you need to change is line 10 of product-list.tpl in your theme directory: {$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'} Remove |strip_tags:'UTF-8' and the HTML tags won't be deleted. works like charm my friend thank you very much for this usefull tip Link to comment Share on other sites More sharing options...
celestron Posted July 28, 2010 Share Posted July 28, 2010 This modification works for the release 1.3 ?I tried but apparently, it does not work.Could-you confirm ?Thanks Link to comment Share on other sites More sharing options...
rocky Posted July 28, 2010 Share Posted July 28, 2010 Yes, it should work in PrestaShop v1.3.1. Link to comment Share on other sites More sharing options...
celestron Posted July 29, 2010 Share Posted July 29, 2010 Could-you send me the modified line or the modified file because I tried but the result is not good.I think I proceed wrong.Thanks a lot Link to comment Share on other sites More sharing options...
rocky Posted July 29, 2010 Share Posted July 29, 2010 In PrestaShop v1.3.1, you need to change line 9 of product-list.tpl in your theme's directory from: <a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}">{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'} to: <a href="{$product.link|escape:'htmlall':'UTF-8'}" title="{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}">{$product.description_short|truncate:360:'...'} Link to comment Share on other sites More sharing options...
celestron Posted July 29, 2010 Share Posted July 29, 2010 Thanks a lot for your reply.I have just applied your modification but the result is the same.Does it work for you ?Thanks a lot Link to comment Share on other sites More sharing options...
rocky Posted July 29, 2010 Share Posted July 29, 2010 Yep, just tested it on my test site and it worked fine. The formatting and line breaks were no longer removed after making the change. I'm not sure why it isn't working for you. I'm using the default PrestaShop theme. Link to comment Share on other sites More sharing options...
jayb174 Posted July 30, 2012 Share Posted July 30, 2012 Can anyone tell me how to adapt this fix to prestashop v 1.4.8? I manage to put an audio player in the product description but it doesn't show in the product list short description. Link to comment Share on other sites More sharing options...
Recommended Posts