Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

main page text editing


pbpools

Recommended Posts

english/index.php

 

->English-> ->

 

 

I can not take this off of my main web page. please help

 

below is my code:

 

 

<?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('TEXT_MAIN', 'Welcome to PBPOOLS shopping cart.<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/rect1.gif') . '</td><td class="main" valign="top"><b>PBPOOLS is your online swimming pool kit source for great inground and above ground swimming pools!</b><br><br>Please look around our site. We will be adding more swimming pool items daily.<br><br> <span class="messageStackError"></span><br><br></td></tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/.gif') . '</td><td class="main" valign="top"><b></b><br><br><br><br><nobr class="messageStackSuccess">' . $language . '/' . FILENAME_DEFAULT . '</nobr><br><br> <nobr class="messageStackSuccess">->' . ucfirst($language) . '-></nobr> <nobr class="messageStackSuccess">-></nobr> <br><br><br><br><nobr><span class="messageStackSuccess"></span></nobr><br><br><br><br><nobr></nobr><br><br><a href="http://www.php.net/define" target="_blank"><u></u></a>.</td></tr>

<tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/.gif') . '</td><td class="main" valign="top"><b></b><br><br>Online documentation can be read at the <a href="http://wiki.oscommerce.com" target="_blank"><u>osCommerce Wiki Documentation Effort</u></a> site.<br><br>Community support is available at the <a href="http://www.oscommerce.com/forums" target="_blank"><u>osCommerce Community Support Forums</u></a> site.</td></tr></table><br>If you wish to download the solution powering this shop, or if you wish to contribute to the osCommerce project, please visit the <a href="http://www.oscommerce.com" target="_blank"><u>support site of osCommerce</u></a>. This shop is running on osCommerce version <font color="#f0000"><b>' . PROJECT_VERSION . '</b></font>.');

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');

}

?>

Link to comment
Share on other sites

Start all over with a fresh copy of your index.php and do not use the osCommerce File Manger Editor, it has a bug that removes back slashes that in turn causes PHP parse errors.

 

Edit the file locally on your PC then ftp the changed file to your site.

 

HTH

Tom

Link to comment
Share on other sites

Start all over with a fresh copy of your index.php and do not use the osCommerce File Manger Editor, it has a bug that removes back slashes that in turn causes PHP parse errors.

 

Edit the file locally on your PC then ftp the changed file to your site.

 

HTH

Tom

 

 

I have tried that, this is what i was left with?

Link to comment
Share on other sites

You cannot have installed a fresh (unedited) copy of the includes/languages/english/index.php file - because the file you quote above is full of parse errors.

 

If you don't have an unedited copy then download the osCommerce MS2.2 zip file from www.oscommerce.com, unzip on your computer, extract the file you need from catalog/includes/languages/english, edit out the unwanted text, just leaving:

 

define('TEXT_MAIN', 'Welcome to PBPOOLS shopping cart.');

 

Keep all the defines below that message.

 

Before editing this clean file, take a backup of it (just in case).

 

Finally, take the edited file and upload to the correct folder on your domain.

 

Vger

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...