datex Posted June 12, 2011 Share Posted June 12, 2011 If you visit my site at:https://www.pesnax.eu/service/cart.php?gid=12 - you will se that there is double <br /> between each line in the product description. I have set one <br /> for each line in the description - how do I get rid of the extra? I'm using "cart" as orderform. 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted June 12, 2011 Share Posted June 12, 2011 Is this 4.5 ? It already puts a <br> at each newline now (incorrectly IMHO) 0 Quote Link to comment Share on other sites More sharing options...
datex Posted June 13, 2011 Author Share Posted June 13, 2011 Is this 4.5 ?It already puts a <br> at each newline now (incorrectly IMHO) Yes - I just upgraded. So I need to change my description (remove the <br />) for all my products? 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted June 13, 2011 Share Posted June 13, 2011 yes, or add your own code to the tpl to replace 2 br's with a single one 0 Quote Link to comment Share on other sites More sharing options...
datex Posted June 13, 2011 Author Share Posted June 13, 2011 yes, or add your own code to the tpl to replace 2 br's with a single one Thanks for your answer. Unfortunately I'm not familiar with PHP programming - perhaps I should start looking into it 0 Quote Link to comment Share on other sites More sharing options...
Eric Seiler Posted June 13, 2011 Share Posted June 13, 2011 The use of '<br /><br />' is a little vexing from a CSS styling POV as whitespace should be achieved through CSS. It isn't really hard to fix however, as noted above (a simple find and replace can wipe out most of these, no real knowledge of PHP is required). 0 Quote Link to comment Share on other sites More sharing options...
datex Posted June 13, 2011 Author Share Posted June 13, 2011 The use of '<br /><br />' is a little vexing from a CSS styling POV as whitespace should be achieved through CSS. It isn't really hard to fix however, as noted above (a simple find and replace can wipe out most of these, no real knowledge of PHP is required). I've tried manually deleting the <br /> in the product description. Now it looks perfect when I browse the products - but when I when choose "order" - and the process steps to "Product Configuration" the <br /> is missing in the description of the product. ??? 0 Quote Link to comment Share on other sites More sharing options...
Eric Seiler Posted June 13, 2011 Share Posted June 13, 2011 Two different templates. Configuration and products. You would need to delete the line breaks from both. The configuration screen looks better IMHO. I'd go with no line breaks. 0 Quote Link to comment Share on other sites More sharing options...
datex Posted June 13, 2011 Author Share Posted June 13, 2011 Two different templates. Configuration and products. You would need to delete the line breaks from both. The configuration screen looks better IMHO. I'd go with no line breaks. I cannot find anymore <br /> in products to delete (at the correct place). It seems that {$product.description} in products.tpl inserts the product description with <br /> and the {$productinfo.description} in configureproduct.tpl - doesn't. 0 Quote Link to comment Share on other sites More sharing options...
Eric Seiler Posted June 13, 2011 Share Posted June 13, 2011 Did you check the product description itself, in products/services? If it isn't in the template, then the issue has to be there. Otherwise, I'm all out of ideas The product description only allows a few types of tags, but <br /> is one of them. Oddly, when looking at your source html, it looks like the lines are being wrapped by <br> on the products page and <p> in the configuration page. I'm not sure what is causing that, but you might want to check you product descriptions again, delete any and all <br />, <br>, and <p> tags as a test (or at least a few as a test). And of course, if all else fails delete the template cache. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.