Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product_info.php


Guest

Recommended Posts

New here, hello all!

I am trying to find a way to get the product descriptions to automatically include </br> in the product description in the ACP control panel when you enter a new product. Does anyone know how to accomplish this. I have been copy and pasting my product information but on the site it just runs together without breaks. I can get it to display correctly if I input html code but is very time consuming.

 

Thank You,

The Joker

Link to comment
Share on other sites

A quicker way is change in product_info.php

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

To

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

This will make your descriptions show the line break when you pasted in the code.

Link to comment
Share on other sites

New here, hello all!

I am trying to find a way to get the product descriptions to automatically include </br> in the product description in the ACP control panel when you enter a new product. Does anyone know how to accomplish this. I have been copy and pasting my product information but on the site it just runs together without breaks. I can get it to display correctly if I input html code but is very time consuming.

 

Thank You,

The Joker

 

WYSIWYG editors do this for you. However, if you care about SEO, you would NOT use these. The description boxes support HTML. Its always best to do your descriptions on something like Dreamweaver and simply copy paste code into your description box. This keep SEO and looks as you want it.

 

Many will argue WYSIWYG editors do not affect SEO, but I have specialized in SEO for many many years and I beg to differ. Dont ask why because if I share my secrets I would have to kill everyone that reads this. haha. (joke)

mmmmmmmmmmmm. Doughnuts . . . haha. i said nuts.

Link to comment
Share on other sites

A quicker way is change in product_info.php

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

To

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

This will make your descriptions show the line break when you pasted in the code.

 

Great suggestion bktrain. Great suggestion.

mmmmmmmmmmmm. Doughnuts . . . haha. i said nuts.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...