Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removal of garbage text


Guest

Recommended Posts

I somehow have some garbage text on my front page of the store. I cannot find what files this

text is coming from in the software. Any suggestions would be helpful trying to go live next week.

THANKS!!! http://www.thecusatisgroup.com/store/catalog

This is a section I pulled from the source html of that page:

 

</tr>
</table>
<!-- new_products_eof //-->
_box_contents);
?>
<!-- new_products_eof //-->
</td>

Since there are 2 entries for new_products_eof, it looks like part of your code in includes/modules/new_products.php got copied and pasted and partially deleted, leaving behind a fragment of itself... Try looking there first...

 

Richard.

Richard Lindsey

Link to comment
Share on other sites

I somehow have some added MORE garbage text on my front page of the store. I cannot find what files this

text is coming from in the software. Any suggestions would be helpful trying to go live TOMORROW 2/18.

Also not sure if it is related but somehow 2 footers appeared???? THANKS!!!

 

http://www.thecusatisgroup.com/store/catalog

Yep, looks like your footer section got copied and pasted and duplicated and part of it cut off in your index.php file... This is out of the html source for that page:

 

<!-- footer //-->
<table border="0" width="100%" cellspacing="0" cellpadding="1">
 <tr class="footer">
<td class="footer">  Sunday 18 February, 2007  </td>
<td align="right" class="footer">  551 requests since Monday 12 February, 2007  </td>

 </tr>
</table>
<br>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<td align="center" class="smallText">
Copyright © 2003 <a href="http://www.oscommerce.com" target="_blank">osCommerce</a><br>Powered by <a href="http://www.oscommerce.com" target="_blank">osCommerce</a>	</td>

 </tr>
</table>
<!-- footer_eof //-->
<br>
</body>
</html>
- footer //-->
<table border="0" width="100%" cellspacing="0" cellpadding="1">
 <tr class="footer">
<td class="footer">  Sunday 18 February, 2007  </td>
<td align="right" class="footer">  552 requests since Monday 12 February, 2007  </td>

 </tr>
</table>
<br>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<td align="center" class="smallText">
Copyright © 2003 <a href="http://www.oscommerce.com" target="_blank">osCommerce</a><br>Powered by <a href="http://www.oscommerce.com" target="_blank">osCommerce</a>	</td>

 </tr>
</table>
<!-- footer_eof //-->
<br>
</body>
</html>

So you'll want to open your index.php file and go down to the very bottom where the footer file is included, and make sure it's not duplicated, which it appears to be...

 

Richard.

Richard Lindsey

Link to comment
Share on other sites

I replaced the /store/catalog/index.php and this fixed the error.

I see this line: <td class="main">TEXT_MAIN</td> in the HTML

but I cannot find the corresponding file. I check both index.php,

header.php, footer.php, column_right.php, column_left.php, etc.

and I CANNOT FIND THIS STUPID line. I am beginning to really

hate PHP code!!! Any suggestions would be great!!!

Link to comment
Share on other sites

It is not in my index.php There is no TEXY_MAIN in that file:

Here is the contents of that file:

<?php

/*

$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

define('HEADING_TITLE', 'WELCOME TO APPLIANCES BUY NET');

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

 

if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {

define('HEADING_TITLE', 'Let\'s See What We Have Here');

define('TABLE_HEADING_IMAGE', '');

define('TABLE_HEADING_MODEL', 'Model');

define('TABLE_HEADING_PRODUCTS', 'Product Name');

define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');

define('TABLE_HEADING_QUANTITY', 'Quantity');

define('TABLE_HEADING_PRICE', 'Price');

define('TABLE_HEADING_WEIGHT', 'Weight');

define('TABLE_HEADING_BUY_NOW', 'Buy Now');

define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');

define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');

define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');

define('TEXT_SHOW', '<b>Show:</b>');

define('TEXT_BUY', 'Buy 1 \'');

define('TEXT_NOW', '\' now');

define('TEXT_ALL_CATEGORIES', 'All Categories');

define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');

} elseif ($category_depth == 'top') {

define('HEADING_TITLE', 'What\'s New Here?');

} elseif ($category_depth == 'nested') {

define('HEADING_TITLE', 'Categories');

}

?>

 

Any other suggestions?? PLEASE!!!

Link to comment
Share on other sites

Here's a suggestion... If the index page itself is showing "TEXT_MAIN" rather than some actual text blurb that it should be defined as, then you'll need to make an entry in your includes/languages/english/index.php file... If it is showing a text blurb and you just can't seem to find the TEXT_MAIN entry to change it, take a portion of that text, copy and paste it to a shell (if you have ssh access) like this, assuming the text says something like "Welcome guest, would you like to login or register?":

 

find . -name "*.php" -exec grep -Hn "would you like to" {} \;

 

Make sure to put the {} and \; on the end of that line as well... This command run from the command line will search from the directory you're currently sitting in (so run it in your catalog root directory) down through all subdirectories, and find all php files, grep through them for the string "would you like to", and return the filename and line # of any matches... You can further filter down the results like this:

 

find . -name "*.php" -exec grep -Hn "would you like to" {} \; | grep "TEXT_MAIN"

 

So that only the results that also have TEXT_MAIN in them will show...

 

Richard.

Richard Lindsey

Link to comment
Share on other sites

catalog/index.php close to the bottom you should find this code

<td class="main"><?php echo TEXT_MAIN; ?></td>
	  </tr>
	  <tr>
		<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
	  </tr>
	  <tr>
		<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>

 

If that is there that way then in catelog/includes/languages/english/index.php add this

define('TEXT_MAIN', ' your text here' );

Or if you want nothing there on the page just remove the line from the first code

<td class="main"><?php echo TEXT_MAIN; ?></td>

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...