Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

<br> tags in products_description field inside of the products_description table... not working


FixItPete

Recommended Posts

Posted

Very odd. When I put a <br> tag to force a carriage return inside of the products_description field inside of the products_description table it messed up the site by making the description appear at the very very top of the screen (above the header, etc.)

 

Any Ideas?

 

All I want to do is get something that looks like this:

 

---------------------------------------

Widgets are fun. Try one today.

 

You won't be sorry!

 

Something...

Something...

---------------------------------------

 

Thanks,

Pete

I find the fun in everything.

Posted
Very odd. When I put a <br> tag to force a carriage return inside of the products_description field inside of the products_description table it messed up the site by making the description appear at the very very top of the screen (above the header, etc.)

 

Any Ideas?

 

All I want to do is get something that looks like this:

 

---------------------------------------

Widgets are fun. Try one today.

 

You won't be sorry!

 

Something...

Something...

---------------------------------------

 

Thanks,

Pete

 

You can make it happen via adminpage in products desc.

just put the <br> there were you want it

Posted

Actually, even in admin, when I try to put:

 

<br>

try this

<br>

 

I get this:

 

">trythis

 

at the top of the screen.

I find the fun in everything.

Posted

This post has something that might help:

 

Shot in the dark

 

you must have uploaded catalog/includes/functions/database.php into your admin

Have you accidentally done that?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

No I don't think so the wrong database.php would give you this _br_

 

The admin should allow you to put html in the product description. First determine if the problem is in admin side or catalog side.

Try some html like <strong>HI</strong> then view your database in phpMyAdmin and see if it was saved correctly.

If its in there correctly and you can edit the product and its there correct then the problem is in catalog side.

I would expect it's some template or mod that's causing your problem so you might let us know what you have done.

Posted

I think some of your problem is your code is messed. In your line;

 

				<!-- <a href="http://www.thebestcandles.com/unscented-pillar-candle-white-pr-1502.html"><img src="includes/languages/english/images/buttons/button_reviews.gif" border="0" alt="Reviews" title=" Reviews " width="100" height="22"></a> --></td>

 

You took out the first <td> but left in the end </td>.

 

Try commenting out the whole line including the end </td>

 

				<!-- <a href="http://www.thebestcandles.com/unscented-pillar-candle-white-pr-1502.html"><img src="includes/languages/english/images/buttons/button_reviews.gif" border="0" alt="Reviews" title=" Reviews " width="100" height="22"></a></td> -->

 

Then near the bottom you have;

 

	   </td>
  </tr>
</table></form></td>
<!-- body_text_eof //-->

 

Try changing it to;

 

		</form></td>
  </tr>
</table></td>
<!-- body_text_eof //-->

 

 

BACKUP FIRST!!!!! Then see if you can enter the <br>

Archived

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

×
×
  • Create New...