Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hello,

 

Im quiet new to oscommerce and i have following problem.

 

If i write something in product description it displays only as plain text.

Is there any solution so everything i write in description saves as HTML.

 

For example if i write something in description and press ENTER to go line down it will not save like that and it will be displayed without ENTER.

Maybe there is any solution for advanced description editor, like where i could insert tables of comparsion for products and like that.

 

Thanks and hoping for some replies.

Posted (edited)

Hi, in products_info.php find(aprox row 145):

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

and replace with:

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

. Thats it

Edited by katalin

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...