Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cant get rid of text


nick0

Recommended Posts

Hi,

I have installed and configured my site and thanks to help pages here it's nearly ready to run.I have one problem and on my home page below register and Login (just above picture album)I have the following text

 

TEXT_MAIN

 

I may have deleted something but I cant work out what.

 

I have searched but cant find an answer.

 

 

Neil

Link to comment
Share on other sites

You wiped out the definition of TEXT_MAIN from some file, most likely includes/languages/english/index.php:

define('TEXT_MAIN', 'This is a default setup of osCommerce Online Merchant....... ');

You need to replace the text "This is a default...." with something, and not just erase the whole line, which is what I'll bet you did. Or, you could go into places that print out TEXT_MAIN and remove those prints, such as replacing in index.php:

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

with

<td class="main"> </td>

Link to comment
Share on other sites

Hi,

I have installed and configured my site and thanks to help pages here it's nearly ready to run.I have one problem and on my home page below register and Login (just above picture album)I have the following text

 

TEXT_MAIN

 

I may have deleted something but I cant work out what.

 

I have searched but cant find an answer.

 

 

Neil

 

Hi Neil

 

or in the file includes/languages/english.php

 

just add

define('TEXT_MAIN','');

just before the last ?> ( at the bottom)

 

Cheers

Shiva

Our truest life is when we are in dreams awake.

-- Henry David Thoreau --

Link to comment
Share on other sites

Hi Neil

 

or in the file includes/languages/english.php

 

just add

define('TEXT_MAIN','');

just before the last ?> ( at the bottom)

 

Cheers

Shiva

IMO it is better to keep things in the files they belong in. That way there is less confusion when people tell others where to look for thing to fix them.

 

As Phill pointed out, the above code can be found in includes/languages/english/index.php.

Link to comment
Share on other sites

Hi,

Thanks for the tips,I have tried and it's still there so I have listed the text from my index file:

 

<?php

/*

$Id: index.php 1739 2007-12-20 00:52:16Z hpdl $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2007 osCommerce

 

Released under the GNU General Public License

*/

 

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

define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');

define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');

 

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', 'WE BUY, WE SELL, WE PART EXCHANGE');

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

define('HEADING_TITLE', 'Categories');

define('TEXT_MAIN','');

}

?>

Link to comment
Share on other sites

Hi,

Thanks for the tips,I have tried and it's still there so I have listed the text from my index file:

 

 

Change this

} elseif ($category_depth == 'nested') {
 define('HEADING_TITLE', 'Categories');
 define('TEXT_MAIN','');
}
?>

to this

} elseif ($category_depth == 'nested') {
 define('HEADING_TITLE', 'Categories');
}
 define('TEXT_MAIN','');
?>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...