Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Description Text Formatting


red devil

Recommended Posts

Posted

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?

Posted
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?

Posted

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?

Posted

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>

Posted
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.

Archived

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

×
×
  • Create New...