Guest Posted February 6, 2009 Posted February 6, 2009 Hi all, I have just installed osCommerce but wanted to remove the homepage text that are on by default apart from the one shown below: Welcome Guest! Would you like to log yourself in? Or would you prefer to create an account? I went into admin and then file manager and selected includes/languages/english/index.php, here is the way i left the code expecting the right results: <?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', 'What\'s New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> It seems to have worked but now i have below the Welcome Guest text the following words TEXT_MAIN i have looked through the index.php but can't see it listed so i don't know how to remove it? Any help is much appreciated. Many Thanks
FIMBLE Posted February 6, 2009 Posted February 6, 2009 you should not use the file manager in the admi section it may screw up your site. The part you need to find is in your index.php [top level] search the file for greeting thrn comment out the line. Use an ftp client or web host file manager to do this Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
Guest Posted February 6, 2009 Posted February 6, 2009 you should not use the file manager in the admi section it may screw up your site.The part you need to find is in your index.php [top level] search the file for greeting thrn comment out the line. Use an ftp client or web host file manager to do this Nic Thanks Nic, so should i put all the code back and do it as you suggested or is what i've done ok this time?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.