ebro79 Posted October 8, 2005 Share Posted October 8, 2005 Hi- I am having problems with my product description script coding. When I enter the script codes the code actually shows. Any input would be appreciated......Thank you! Link to comment Share on other sites More sharing options...
native Posted October 8, 2005 Share Posted October 8, 2005 Hi- I am having problems with my product description script coding. When I enter the script codes the code actually shows. Any input would be appreciated......Thank you! Hi. Could you give more info like what you are trying to put into your product description and how you are doing it? Link to comment Share on other sites More sharing options...
ebro79 Posted October 8, 2005 Author Share Posted October 8, 2005 Yes, this is an example of what it looks like(MEASUREMENTS: 14.5" x 7"_br__br_ -3 Inside Pockets). I enter <br> into my script and this is what it looks like on my website. Hi.Could you give more info like what you are trying to put into your product description and how you are doing it? Link to comment Share on other sites More sharing options...
kirchenbauer Posted October 9, 2005 Share Posted October 9, 2005 Hmmm..... I know there is a setting that you can change, so it handles the " properly, but can you just change the " to inches? That might solve it. Link to comment Share on other sites More sharing options...
ebro79 Posted October 9, 2005 Author Share Posted October 9, 2005 Hmmm..... I know there is a setting that you can change, so it handles the " properly, but can you just change the " to inches? That might solve it. Hi yes I can, do you mean actually spelling out the word "inches"? Link to comment Share on other sites More sharing options...
kirchenbauer Posted October 9, 2005 Share Posted October 9, 2005 Yes. The system might not be handling your quotes properly. Change this 14.5" x 7" to 14.5 inches x 7 inches or to 14.5 x 7 inches Link to comment Share on other sites More sharing options...
ebro79 Posted October 9, 2005 Author Share Posted October 9, 2005 I spelled out "inches" this didn't work, any other suggestions? Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted October 9, 2005 Share Posted October 9, 2005 I spelled out "inches" this didn't work, any other suggestions? are you calling the description like this? <?php echo stripslashes($product_info['products_description']); ?> :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
ebro79 Posted October 9, 2005 Author Share Posted October 9, 2005 I am not sure what you are talking about. This is what I enter when I am describing a product... Measurements: 1" x 2" <br> Color: Red<br> It appears on my website looking like this: Measurements: 1" x 2" -br-Color: Red-br- Help! Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted October 9, 2005 Share Posted October 9, 2005 I am not sure what you are talking about. This is what I enter when I am describing a product...Measurements: 1" x 2" <br> Color: Red<br> It appears on my website looking like this: Measurements: 1" x 2" -br-Color: Red-br- Help! have you modified admin/categories.php or catalog/product_info.php (that is where you are calling the description) :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
kirchenbauer Posted October 9, 2005 Share Posted October 9, 2005 Bridgette, Are you entering the product description in the osCommerce Admin? Or what do you mean when you say you are entering the description in the "script"? And are they coming out like this -br- or like this _br_ ? Your first post showed underlines, but the latest post has dashes. Link to comment Share on other sites More sharing options...
ebro79 Posted October 10, 2005 Author Share Posted October 10, 2005 Bridgette, Are you entering the product description in the osCommerce Admin? Or what do you mean when you say you are entering the description in the "script"? And are they coming out like this -br- or like this _br_ ? Your first post showed underlines, but the latest post has dashes. I am entering the info in the Admin catalog section of osCommerce......they are coming out _br_ Link to comment Share on other sites More sharing options...
kirchenbauer Posted October 10, 2005 Share Posted October 10, 2005 I found a couple of things from others having the same problem. I don't know if this applies to your situation. One of the forum posts is in purple and the other is in green. Sep 2 2005, 11:12 PM Post #7 Utku Subakan Hi there; I cant use HTML tags on products description. For example; i wrote. Specs <p><p> Controls<p> Nice<p> It returns Specs_p__p_Controls_p_Nice_p_ When i go to the MySql on pruducts table. The product_description field again, QUOTE Specs_p__p_Controls_p_Nice_p_ I think there can be a problem at admin/catagories.php while adding the products. Any suggestions? --------------------------------------------------------------------------------------------------- REPLY user99999999 Sep 3 2005, 12:56 AM Post #8 Dave... you must have uploaded catalog/includes/functions/database.php into your admin catalog/admin/includes/functions/database.php This function is for admin it doesnt call tep_sanitize_string(). CODE function tep_db_prepare_input($string) { if (is_string($string)) { return trim(stripslashes($string)); } elseif (is_array($string)) { reset($string); while (list($key, $value) = each($string)) { $string[$key] = tep_db_prepare_input($value); } return $string; } else { return $string; } } --------------------------------------------------------------------------------------------------------------- REPLY kontraktr Sep 3 2005, 05:30 AM Post #9 Utku Subakan Thanks a lot Dave. I put correct database.php file and now it works great. Thanks again! I somtimes have a few problems using html in descriptions, but only If I have used the back button from the preview page to go back and change somthing. It normally does it when using " " for me.... So when doing colours <font color="#ef0000"> when you have used to back button it changes it to <font color/#ef0000/> Link to comment Share on other sites More sharing options...
ebro79 Posted October 10, 2005 Author Share Posted October 10, 2005 I found a couple of things from others having thesame problem. I don't know if this applies to your situation. One of the forum posts is in purple and the other is in green. Sep 2 2005, 11:12 PM Post #7 Utku Subakan Hi there; I cant use HTML tags on products description. For example; i wrote. Specs <p><p> Controls<p> Nice<p> It returns Specs_p__p_Controls_p_Nice_p_ When i go to the MySql on pruducts table. The product_description field again, QUOTE Specs_p__p_Controls_p_Nice_p_ I think there can be a problem at admin/catagories.php while adding the products. Any suggestions? --------------------------------------------------------------------------------------------------- REPLY user99999999 Sep 3 2005, 12:56 AM Post #8 Dave... you must have uploaded catalog/includes/functions/database.php into your admin catalog/admin/includes/functions/database.php This function is for admin it doesnt call tep_sanitize_string(). CODE function tep_db_prepare_input($string) { if (is_string($string)) { return trim(stripslashes($string)); } elseif (is_array($string)) { reset($string); while (list($key, $value) = each($string)) { $string[$key] = tep_db_prepare_input($value); } return $string; } else { return $string; } } --------------------------------------------------------------------------------------------------------------- REPLY kontraktr Sep 3 2005, 05:30 AM Post #9 Utku Subakan Thanks a lot Dave. I put correct database.php file and now it works great. Thanks again! I somtimes have a few problems using html in descriptions, but only If I have used the back button from the preview page to go back and change somthing. It normally does it when using " " for me.... So when doing colours <font color="#ef0000"> when you have used to back button it changes it to <font color/#ef0000/> Thank you.......I'm not sure about how to do this, where do I start? Link to comment Share on other sites More sharing options...
kirchenbauer Posted October 10, 2005 Share Posted October 10, 2005 Here's a thought, in your description, do you have all of your text flowing together like this: 1) This is my description.<br>This is line two of my description.<br>This is line three of my description. Or, does your text look like this: 2) This is my description.<br> This is line two of my description.<br> This is line three of my descritpion. I just read something about using the "carriage return" or the "enter" button when using html in osCommerce. It can cause the exact problem you are having. If you have it set up like "2", can you go in and set it up like "1" and see if that resolves it? What I am trying to say is, can you make it like "1" above, where all of the text flows together, instead of pressing enter to go to the next line? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.