Graemcom Posted April 12, 2005 Posted April 12, 2005 :'( ok, I have tried many times to get rid of the words (on the catalog page) after 'hello guest, would you like to create account'....etc I have tried deleting all of the words except define('HEADING_TITLE', ' '); I have tried taking out the apostrophes...I don't know what else to do... Why won't this work for me? i keep getting parse errors on line 19, then 33 and 18, etc.....HELP! Released under the GNU General Public License */ define('HEADING_TITLE', 'Lets See What We Have Here'); 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', 'Lets 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'); } ?>
♥Vger Posted April 12, 2005 Posted April 12, 2005 Parse errors occur when you edit files using the osCommerce File Manager so stop using it. It strips essential backslashes from in front of apostrophies and thus causes the errors. Download the file, edit in a plain text editor like Notepad, Text Pad or Crimson Editor. Then upload again. I can see at least two apostrophies that don't have a backslash in front of them in that file you've posted: 'What's New Here?' 'Buy 1 '' should be 'What\'s New Here' 'Buy 1 \'' Vger
greykher Posted April 12, 2005 Posted April 12, 2005 The text you are looking to change exists in the catalog/includes/languages/english/english.php (presuming you're using the English fileset; if you're using others as well, you'll have to change them all.) Look for these defines: define('TEXT_GREETING_PERSONAL', 'Welcome back <span class="greetUser">%s!</span> Would you like to see which <a href="%s"><u>new products</u></a> are available to purchase?');define('TEXT_GREETING_PERSONAL_RELOGON', '<small>If you are not %s, please <a href="%s"><u>log yourself in</u></a> with your account information.</small>');define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?');CODE] And, in addition to the 2 corrections Vger pointed out in What's New and Buy 1, you also need ot make'' now' into '\' now'
Recommended Posts
Archived
This topic is now archived and is closed to further replies.