LisaM Posted November 4, 2008 Share Posted November 4, 2008 Hello - I simply want to change the text that says "Let's see what we have here" and have followed all the directions given (I understand how to balance parenthesis, quotes, use the backslash before an apostrophe, etc). I am not familiar with PHP but do understand HTML. Still no luck. Parse error. I copied the correct index.php before fooling with it and pasted it back into the editing screen when I couldn't get things to work. I'm still getting an error now. I have spent tons of time on this and find it very frustrating when the change to be made is so simple. I can paste the code if necessary. Thanks in advance. Link to comment Share on other sites More sharing options...
spax Posted November 5, 2008 Share Posted November 5, 2008 Yes, post the code and what you want to change it to. Someone here will set you straight. Link to comment Share on other sites More sharing options...
♥jailaxmi Posted November 5, 2008 Share Posted November 5, 2008 It's been a while since I changed the text around my store, but are you looking at catalog/includes/english/index.php? That's where some of your heading text is. Another file to look at for text changes is catalog/includes/english.php Of course, change to your language above if it's not English. Yol I repeat myself when under stress, I repeat myself when under stress, I repeat myself... --King Crimson (“Discipline”) Link to comment Share on other sites More sharing options...
LisaM Posted November 5, 2008 Author Share Posted November 5, 2008 Here's the code. I would like to say "Carbone Planters Online Store" instead of "Let's see what we have here". Here's the 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', ''); 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'); } ?> Thanks again. Link to comment Share on other sites More sharing options...
burt Posted November 5, 2008 Share Posted November 5, 2008 Change this: define('HEADING_TITLE', 'Let\'s See What We Have Here'); Pretty obvious ;) Link to comment Share on other sites More sharing options...
spax Posted November 5, 2008 Share Posted November 5, 2008 I think she understands that Gary but is getting errors when making the change. Lisa, you are actually missing a couple of backslashes. Use this code instead: <?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', ''); 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', 'Carbone Planters Online Store'); 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 More sharing options...
LisaM Posted November 5, 2008 Author Share Posted November 5, 2008 Peter, the good news is the parse error is gone. The bad news is, the page is completely blank now. I am doing a simple copy and paste of your code into the editing screen. Any ideas? Thanks so much. I think she understands that Gary but is getting errors when making the change. Lisa, you are actually missing a couple of backslashes. Use this code instead: <?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', ''); 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', 'Carbone Planters Online Store'); 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 More sharing options...
spax Posted November 5, 2008 Share Posted November 5, 2008 You aren't using the admin file manager to make changes, are you? Link to comment Share on other sites More sharing options...
Enzio_Ferrari Posted November 6, 2008 Share Posted November 6, 2008 Use Notepad or Wordpad to open oscommerce/catalog/includes/languages/english/index.php from your HDD. Near the bottom there are several lines starting "define" (without the quotes). 'What\'s New Here' is one of the definitions. It's the second up. Replace that text - keeping the single quotes - and save as a .txt file. Save the file and then upload it to the correct location on your server, rename the old file (I prefer ???.BAK as a mnemonic) and then rename 'index.php.txt' to just 'index.php'. If, for some reason it doesn't work you can rename or even delete it and then just put the old file back to its original name. While you're changing the main page title you can also change the category page heading at "define('HEADING_TITLE'" (the first of that block of definitions) and quite a few others. When all else fails ... RTFI ... then ... GIVE UP! Link to comment Share on other sites More sharing options...
LisaM Posted November 7, 2008 Author Share Posted November 7, 2008 You aren't using the admin file manager to make changes, are you? Peter, I am. I suspect I'm losing some of the syntax when copying and pasting from Word? I'll try the suggestion further down this thread. Thanks again (though I may be back!). Link to comment Share on other sites More sharing options...
LisaM Posted November 7, 2008 Author Share Posted November 7, 2008 Use Notepad or Wordpad to open oscommerce/catalog/includes/languages/english/index.php from your HDD. Near the bottom there are several lines starting "define" (without the quotes). 'What\'s New Here' is one of the definitions. It's the second up. Replace that text - keeping the single quotes - and save as a .txt file. Save the file and then upload it to the correct location on your server, rename the old file (I prefer ???.BAK as a mnemonic) and then rename 'index.php.txt' to just 'index.php'. If, for some reason it doesn't work you can rename or even delete it and then just put the old file back to its original name. While you're changing the main page title you can also change the category page heading at "define('HEADING_TITLE'" (the first of that block of definitions) and quite a few others. Thanks, Jan, for the suggestion. I made the changes and uploaded but am still getting a blank page. I am using the Admin File Manager to upload. Still stuck. Link to comment Share on other sites More sharing options...
spax Posted November 7, 2008 Share Posted November 7, 2008 Lisa, you can't use MS Word, it will do strange things to the code. You need to use a plain text editor - Notepad if you have nothing else. I use EditPad Lite, which is free, while a lot of others use Crimson Editor, also free. Google for one of them. Never use the admin file manager to make changes. Link to comment Share on other sites More sharing options...
Enzio_Ferrari Posted November 7, 2008 Share Posted November 7, 2008 Thanks, Jan, for the suggestion. I made the changes and uploaded but am still getting a blank page. I am using the Admin File Manager to upload. Still stuck. That could be part of the problem. An FTP app is far more useful for these kinds of up/down loads (although some say its problematical I have used CuteFTP Pro for several years). By the way ... Word is no good for editing as it adds 'hidden' (i.e not visible) formatting commands within the structure of its files. Wordpad is better and Notepad is best. When saving the file from Notepad you have to do so a "Text Documents(*.txt)" When all else fails ... RTFI ... then ... GIVE UP! Link to comment Share on other sites More sharing options...
LisaM Posted November 7, 2008 Author Share Posted November 7, 2008 That could be part of the problem. An FTP app is far more useful for these kinds of up/down loads (although some say its problematical I have used CuteFTP Pro for several years).By the way ... Word is no good for editing as it adds 'hidden' (i.e not visible) formatting commands within the structure of its files. Wordpad is better and Notepad is best. When saving the file from Notepad you have to do so a "Text Documents(*.txt)" I did use Notepad this time. And I usually use FTP Commander but am having trouble figuring out where to upload into osCommerce's server. Sorry to sound so dense about this. Link to comment Share on other sites More sharing options...
LisaM Posted November 7, 2008 Author Share Posted November 7, 2008 Lisa, you can't use MS Word, it will do strange things to the code. You need to use a plain text editor - Notepad if you have nothing else. I use EditPad Lite, which is free, while a lot of others use Crimson Editor, also free. Google for one of them. Never use the admin file manager to make changes. OK. Thanks, Peter. I'll hang on to your code for use once I get this sorted out. Link to comment Share on other sites More sharing options...
Enzio_Ferrari Posted November 7, 2008 Share Posted November 7, 2008 The file goes back into catalog/includes/languages/english There are more hints, tips and ideas here http://www.oscommerce.com/forums/index.php?showtopic=274968 When all else fails ... RTFI ... then ... GIVE UP! Link to comment Share on other sites More sharing options...
LordPG Posted November 8, 2008 Share Posted November 8, 2008 Here's the code. I would like to say "Carbone Planters Online Store" instead of "Let's see what we have here". Here's the 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', ''); 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'); } ?> Thanks again. Where do I find that? In what directory? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.