FixItPete Posted March 13, 2008 Posted March 13, 2008 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.
Guest Posted March 13, 2008 Posted March 13, 2008 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.
FixItPete Posted March 13, 2008 Author Posted March 13, 2008 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.
Jack_mcs Posted March 13, 2008 Posted March 13, 2008 The nl2br part of that statement will replace any linefeed (\n) found with a html line break (<br>), so try using \n in the description instead, or get rid of the nl2br. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
FixItPete Posted March 14, 2008 Author Posted March 14, 2008 Thanks Jack... still does *not* work... :( I find the fun in everything.
Jack_mcs Posted March 14, 2008 Posted March 14, 2008 Try enclosing it in a table cell, and ow if needed. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Recommended Posts
Archived
This topic is now archived and is closed to further replies.