Guest Posted July 6, 2005 Share Posted July 6, 2005 I am trying to replace \the index page content text. I know it is in includes/language/english/index.php However, It still seems very complicated and I think i may prefer to just include a different file that contains the main body text. Any ideas? Link to comment Share on other sites More sharing options...
♥Vger Posted July 6, 2005 Share Posted July 6, 2005 That file, apart from containing the text you see on the page, controls a lot of definitions. Unless you are prepared to lose a good part of the functionality of osCommerce you will have to work with that file. To find out how to edit that file use the link below my name entitled "Psst?? Got a parse error??", and don't forget that any text you use which has apostrophies in it needs for those apostrophies to be 'escaped' with a preceeding backslash, as in: Let's = wrong Let\'s = right Where you put your content in that file is quite simple, as outlined below: define('TEXT_MAIN', 'Remove everything between those two apostrophies and then replace with your own text. These two apostrophies do not need backslashes in front of them, they are part of the php'); Then leave everything including what I've put below in place: 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', 'Welcome.'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> Vger Link to comment Share on other sites More sharing options...
Guest Posted July 6, 2005 Share Posted July 6, 2005 Excellent, that is the kind of explanation I needed. Made things a lot clearer. I reckon it should be made much simpler to change the text though. Thank you very much for your prompt response. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.