Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Description Text Formatting


red devil

Recommended Posts

Despite having the Tinymce WYSIWYG editor installed in Advanced mode in Admin for adding product descriptions and despite everything looking OK in the "preview" window, when the product description is displayed on the website it is unformatted as one continous string (with spaces in between words of course). The editor allows for colours and bold formatting and line spacing but this all disappears.

 

What is causing this? Where should I be looking?

 

I realise I can edit my listing in HTML but the WYSIWYG is more user friendly.

 

Can anyone suggest a solution, please?

Link to comment
Share on other sites

Despite having the Tinymce WYSIWYG editor installed in Advanced mode in Admin for adding product descriptions and despite everything looking OK in the "preview" window, when the product description is displayed on the website it is unformatted as one continous string (with spaces in between words of course). The editor allows for colours and bold formatting and line spacing but this all disappears.

 

What is causing this? Where should I be looking?

 

I realise I can edit my listing in HTML but the WYSIWYG is more user friendly.

 

Can anyone suggest a solution, please?

Out of curiosity, which addon for product descriptions uses Tinymce?

Link to comment
Share on other sites

If it helps to pin point the area that needs looking at, I've checked the database and all the HTML formatting is on there (colours, bold, fonts) so it loses it somehow when it reads the database and displays it on the webpage. Any clues?

Link to comment
Share on other sites

I have tracked the problem down to some altered code in product_info.php (nothing to do with Tinymce as that had done it's job) where is formats things to display on the webpage. Thanks for all your help.

 

This is the correct code. The other code I had was stripping out formatting e.g. <br> <p>

 

<p><?php echo stripslashes($product_info['products_description']); ?></p>

Link to comment
Share on other sites

I have tracked the problem down to some altered code in product_info.php (nothing to do with Tinymce as that had done it's job) where is formats things to display on the webpage. Thanks for all your help.

 

This is the correct code. The other code I had was stripping out formatting e.g. <br> <p>

 

<p><?php echo stripslashes($product_info['products_description']); ?></p>

Glad you solved it and posted the solution.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...