OSCOMMERCE SUPPORT CALL 702-453-3332

 

Help - Search - Members - Calendar
Full Version: Add Width to Product Listing Columns
osCommerce Community Support Forums > osCommerce Online Merchant v2.x > Tips and Tricks
illufox
I was following the instrucitons at http://www.oscommerce.info/kb/210 step by step. Before I made changes to the code, I made a backup of the original files. Once I was done changing everything according to the instructions I checked my store only to find out that it was messed up. In almost every line there are now "nnnnnnnnnnn" showing. crying.gif

I changed the code back to it's original, but the "nnnnnnnnnnnnnnn" is still showing. What happened? How can I fix this? huh.gif

https://vermigreen.com/~vermigre/store/catalog/index.php

After all that I realize that this is not even what I actually tried to achieve, which is adding with to the left boxes. So at this point I just want those "n"s to disappear.

Any help is greatly appreciated!
illufox
I did some research on the internet and found the following thread: http://forums.oscommerce.com/lofiversion/i...php?t59030.html

I tried to put the / in front of the n's in the boxes.php file, but that didn't solve the problem.....instead it showed /n/n/n/n/n/n/n/n/n/n/n/n/. I've also tried to put the / in front of the quotes like so - /"n" but that just caused a page error with a blank page.

Unfortunately the thread is old and therefore I cannot ask this person how he actually fixed the problem.

At least I know now that the problem is in the boxes.php file under /catalog//includes/classes.

Not sure what happened but I did backup the original. For some reason it got corrupted. Does anyone have the original boxes.php file, or does anyone know how to fix this?
illufox
I got it!!!!

The dude that posted that thread made a typo. I tried a backward slash (\) instead of a forward slash (/) in front of each n and voila, this solved the problem.

Example:

$tableBox_string .= '>' . "n";

change to

$tableBox_string .= '>' . "\n";

Do this for each occurance of the "n".

What I noticed is that the backward slash disappears when you reopen the file after saving, but the problem is solved.

Weird PHP bug......

I hope this will help other osCommerce users wink.gif
sligers
Thank you so very much!!! I must have followed the same directions as you and I was FREAKIN!!!

I'm going to post your info on the thread where the info was.

Thanks again.

Selena
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.