Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can somebody tell me where to but a small bit of code I found based on a thread on this forum please?


FixItPete

Recommended Posts

Posted

This thread:

 

http://www.oscommerce.com/forums/index.php?showtopic=58238

 

Says if you use this line:

 

<?php echo nl2br ($product_info_values['products_description']); ?>

 

you can then put <br> tags into your products_description field in your products_description table... which right now, does not always work for me. (it puts the new line at the VERY top of the page... odd.)

 

I don't understand where it (the code above) should go.

 

Thank You,

Pete

I find the fun in everything.

Posted

I think they are talking about product_info.php right above

 

$products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'");

$products_attributes = tep_db_fetch_array($products_attributes_query);

if ($products_attributes['total'] > 0) {

 

 

my line is totally different but I think that is where they mean.

Posted

Thanks... I tried it above it, and tried it inside, tried a few different things... doesn't work. :(

 

Any ideas on how to get this to work?

 

When I put a <BR> tag into the products_description I get the <BR at the VERY top of my page... any ideas?

I find the fun in everything.

Archived

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

×
×
  • Create New...