kimdavis1959 Posted August 3, 2006 Share Posted August 3, 2006 Ok I know this has been asked before but I did not find the answer I was looking for in those so I am posting my own inquiry. For the life of me I cannot find the editable text within this file to change this paqe... http://thethriftycook.com/osCommerce/catalog/ :'( I am new at php so that could be a problem...but...what am I missing here? Kim Link to comment Share on other sites More sharing options...
dave111 Posted August 3, 2006 Share Posted August 3, 2006 Go to Admin -> Tools -> Define Languages -> index.php Link to comment Share on other sites More sharing options...
abra123cadabra Posted August 3, 2006 Share Posted August 3, 2006 In osC you have the language files in /catalog/includes/languages/english/ (/german/ etc.). In this folder you find ie. index.php which defines the language bits for index.php in /catalog/. So to edit the english language text in checkout_confirmation.php you would open /catalog/includes/languages/english/checkout_confirmation.php etc. Language texts that are used in more than one page or for the infoboxes are defined in /catalog/includes/languages/english.php (or german.php etc.). To change the layout of the files you would modify the files in /catalog/. I hope that makes it a bit clearer as to how osC is designed. abra The First Law of E-Commerce: If the user can't find the product, the user can't buy the product. Feedback and suggestions on my shop welcome. Note: My advice is based on my own experience or on something I read in these forums. No guarantee it'll work for you! Make sure that you always BACKUP the database and the files you are going to change so that you can rollback to a working version if things go wrong. Link to comment Share on other sites More sharing options...
kimdavis1959 Posted August 3, 2006 Author Share Posted August 3, 2006 Go to Admin -> Tools -> Define Languages -> index.php ok...I messed it up royally somehow...now I get an error http://thethriftycook.com/osCommerce/catalog/ :'( Link to comment Share on other sites More sharing options...
mtechama Posted August 3, 2006 Share Posted August 3, 2006 ok...I messed it up royally somehow...now I get an error http://thethriftycook.com/osCommerce/catalog/ :'( can you post your index.php please Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
redmaro42 Posted August 3, 2006 Share Posted August 3, 2006 Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory. That is what I get when I try to log into my account by going to gvperformance.com/admin How do I change the data so that I can start working on my store. I am a total newbie to this stuff. Do I have to do it in the file on my harddrive and then upload that file with through a ftp or how do I go about this? I am hosted through bluehost if that makes a difference. Link to comment Share on other sites More sharing options...
kimdavis1959 Posted August 3, 2006 Author Share Posted August 3, 2006 ok...I messed it up royally somehow...now I get an error http://thethriftycook.com/osCommerce/catalog/ :'( This is a default setup of the osCommerce project...\'); The text highlighted in green may be modified - it is important to keep the define() of the TEXT_MAIN keyword. To remove the text for TEXT_MAIN completely, the following example is used where only two single quote characters exist: define(\'TEXT_MAIN\', \'\'); More information concerning the PHP define() function can be read here.' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . 'Securing The Administration Tool It is important to secure the Administration Tool as there is currently no security implementation available.' . tep_image(DIR_WS_IMAGES . 'default/4.gif') . 'Online Documentation Online documentation can be read at the osCommerce Wiki Documentation Effort site. Community support is available at the osCommerce Community Support Forums site. If you wish to download the solution powering this shop, or if you wish to contribute to the osCommerce project, please visit the support site of osCommerce. This shop is running on osCommerce version ' . PROJECT_VERSION . '.'); 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', 'Show:'); 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...
mtechama Posted August 3, 2006 Share Posted August 3, 2006 This is a default setup of the osCommerce project...\'); The text highlighted in green may be modified - it is important to keep the define() of the TEXT_MAIN keyword. To remove the text for TEXT_MAIN completely, the following example is used where only two single quote characters exist: define(\'TEXT_MAIN\', \'\'); More information concerning the PHP define() function can be read here.' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . 'Securing The Administration Tool It is important to secure the Administration Tool as there is currently no security implementation available.' . tep_image(DIR_WS_IMAGES . 'default/4.gif') . 'Online Documentation Online documentation can be read at the osCommerce Wiki Documentation Effort site. Community support is available at the osCommerce Community Support Forums site. If you wish to download the solution powering this shop, or if you wish to contribute to the osCommerce project, please visit the support site of osCommerce. This shop is running on osCommerce version ' . PROJECT_VERSION . '.'); 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', 'Show:'); 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'); } ?> that isn't the code: if you use Front page or HTML editor then go to (catalog)/includes/languages/english/index.php then it will open it with Front Page or HTML editor then copy the code from that to here. Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
kimdavis1959 Posted August 3, 2006 Author Share Posted August 3, 2006 that isn't the code: if you use Front page or HTML editor then go to (catalog)/includes/languages/english/index.php then it will open it with Front Page or HTML editor then copy the code from that to here. is this it? <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-FAMILY: Verdana">This is a default setup of the osCommerce project...\');</NOBR><BR><BR>The text highlighted in green may be modified - it is important to keep the define() of the TEXT_MAIN keyword. To remove the text for TEXT_MAIN completely, the following example is used where only two single quote characters exist:<BR><BR><NOBR>define(\'TEXT_MAIN\', \'\');</NOBR><BR><BR>More information concerning the PHP define() function can be read <A href="http://www.php.net/define" target=_blank>here</A>.' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . '<B>Securing The Administration Tool</B><BR><BR>It is important to secure the Administration Tool as there is currently no security implementation available.' . tep_image(DIR_WS_IMAGES . 'default/4.gif') . '<B>Online Documentation</B><BR><BR>Online documentation can be read at the <A href="http://wiki.oscommerce.com/" target=_blank>osCommerce Wiki Documentation Effort</A> site.<BR><BR>Community support is available at the <A href="http://www.oscommerce.com/forums/" target=_blank>osCommerce Community Support Forums</A> site.<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>support site of osCommerce</A>. This shop is running on osCommerce version <B><SPAN style="COLOR: #100097">' . PROJECT_VERSION . '</SPAN></B>.'); 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'); } ?></SPAN></P><?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', 'This is a default setup of the osCommerce project, products shown are for demonstrational purposes, <b>any products purchased will not be delivered nor will the customer be billed</b>. Any information seen on these products is to be treated as fictional.<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Error Messages</b><br><br>If there are any error or warning messages shown above, please correct them first before proceeding.<br><br>Error messages are displayed at the very top of the page with a complete <span class="messageStackError">background</span> color.<br><br>Several checks are performed to ensure a healthy setup of your online store - these checks can be disabled by editing the appropriate parameters at the bottom of the includes/application_top.php file.</td></tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"><b>Editing Page Texts</b><br><br>The text shown here can be modified in the following file, on each language basis:<br><br><nobr class="messageStackSuccess">[path to catalog]/includes/languages/' . $language . '/' . FILENAME_DEFAULT . '</nobr><br><br>That file can be edited manually, or via the Administration Tool with the <nobr class="messageStackSuccess">Languages->' . ucfirst($language) . '->Define</nobr> or <nobr class="messageStackSuccess">Tools->File Manager</nobr> modules.<br><br>The text is set in the following manner:<br><br><nobr>define(\'TEXT_MAIN\', \'<span class="messageStackSuccess"> Link to comment Share on other sites More sharing options...
mtechama Posted August 3, 2006 Share Posted August 3, 2006 is this it? <P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-FAMILY: Verdana">This is a default setup of the osCommerce project...\');</NOBR><BR><BR>The text highlighted in green may be modified - it is important to keep the define() of the TEXT_MAIN keyword. To remove the text for TEXT_MAIN completely, the following example is used where only two single quote characters exist:<BR><BR><NOBR>define(\'TEXT_MAIN\', \'\');</NOBR><BR><BR>More information concerning the PHP define() function can be read <A href="http://www.php.net/define" target=_blank>here</A>.' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . '<B>Securing The Administration Tool</B><BR><BR>It is important to secure the Administration Tool as there is currently no security implementation available.' . tep_image(DIR_WS_IMAGES . 'default/4.gif') . '<B>Online Documentation</B><BR><BR>Online documentation can be read at the <A href="http://wiki.oscommerce.com/" target=_blank>osCommerce Wiki Documentation Effort</A> site.<BR><BR>Community support is available at the <A href="http://www.oscommerce.com/forums/" target=_blank>osCommerce Community Support Forums</A> site.<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>support site of osCommerce</A>. This shop is running on osCommerce version <B><SPAN style="COLOR: #100097">' . PROJECT_VERSION . '</SPAN></B>.'); 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'); } ?></SPAN></P><?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', 'This is a default setup of the osCommerce project, products shown are for demonstrational purposes, <b>any products purchased will not be delivered nor will the customer be billed</b>. Any information seen on these products is to be treated as fictional.<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Error Messages</b><br><br>If there are any error or warning messages shown above, please correct them first before proceeding.<br><br>Error messages are displayed at the very top of the page with a complete <span class="messageStackError">background</span> color.<br><br>Several checks are performed to ensure a healthy setup of your online store - these checks can be disabled by editing the appropriate parameters at the bottom of the includes/application_top.php file.</td></tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"><b>Editing Page Texts</b><br><br>The text shown here can be modified in the following file, on each language basis:<br><br><nobr class="messageStackSuccess">[path to catalog]/includes/languages/' . $language . '/' . FILENAME_DEFAULT . '</nobr><br><br>That file can be edited manually, or via the Administration Tool with the <nobr class="messageStackSuccess">Languages->' . ucfirst($language) . '->Define</nobr> or <nobr class="messageStackSuccess">Tools->File Manager</nobr> modules.<br><br>The text is set in the following manner:<br><br><nobr>define(\'TEXT_MAIN\', \'<span class="messageStackSuccess"> that code is really screwed up, do you still have the original code to replace it? Wade Morris Amarillo, Texas Before you do any changes on your site you need to do BACKUP! BACKUP! Link to comment Share on other sites More sharing options...
kimdavis1959 Posted August 3, 2006 Author Share Posted August 3, 2006 that code is really screwed up, do you still have the original code to replace it? I have this <?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', 'This is a default setup of the osCommerce project, products shown are for demonstrational purposes, <b>any products purchased will not be delivered nor will the customer be billed</b>. Any information seen on these products is to be treated as fictional.<br><br><table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . '</td><td class="main" valign="top"><b>Error Messages</b><br><br>If there are any error or warning messages shown above, please correct them first before proceeding.<br><br>Error messages are displayed at the very top of the page with a complete <span class="messageStackError">background</span> color.<br><br>Several checks are performed to ensure a healthy setup of your online store - these checks can be disabled by editing the appropriate parameters at the bottom of the includes/application_top.php file.</td></tr><td class="main" valign="top">' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . '</td><td class="main" valign="top"><b>Editing Page Texts</b><br><br>The text shown here can be modified in the following file, on each language basis:<br><br><nobr class="messageStackSuccess">[path to catalog]/includes/languages/' . $language . '/' . FILENAME_DEFAULT . '</nobr><br><br>That file can be edited manually, or via the Administration Tool with the <nobr class="messageStackSuccess">Languages->' . ucfirst($language) . '->Define</nobr> or <nobr class="messageStackSuccess">Tools->File Manager</nobr> modules.<br><br>The text is set in the following manner:<br><br><nobr>define(\'TEXT_MAIN\', \'<span class="messageStackSuccess">\')'); ?> Link to comment Share on other sites More sharing options...
abra123cadabra Posted August 3, 2006 Share Posted August 3, 2006 Basically you can throw out everything and replace it with your text like this: define('TEXT_MAIN', 'Your text goes here.'); abra The First Law of E-Commerce: If the user can't find the product, the user can't buy the product. Feedback and suggestions on my shop welcome. Note: My advice is based on my own experience or on something I read in these forums. No guarantee it'll work for you! Make sure that you always BACKUP the database and the files you are going to change so that you can rollback to a working version if things go wrong. Link to comment Share on other sites More sharing options...
kimdavis1959 Posted August 3, 2006 Author Share Posted August 3, 2006 Basically you can throw out everything and replace it with your text like this: define('TEXT_MAIN', 'Your text goes here.'); abra Okay I don't mean to be a pain but...I messed up once...I want to make sure this is right. I can delete everything before the define('TEXT_MAIN', 'Your text goes here.') and after it and put in my own text? What happens to the Heading Text? The Customer login option and create an account option? Don't mean to be a pain but I don't understand any of this tho I am learning the hard way:-D Link to comment Share on other sites More sharing options...
abra123cadabra Posted August 3, 2006 Share Posted August 3, 2006 No pain, good that you ask! Sorry if I wasn't clear enough. What I meant was that you can delete all the bit within the define('TEXT_MAIN', '.....'); statement. All the rest around needs to stay otherwise your language for the heading etc. will be lost. As you can see, all those statements are built up in the same way define ('VARIABLE', 'text variable is replaced with when displaying'); abra The First Law of E-Commerce: If the user can't find the product, the user can't buy the product. Feedback and suggestions on my shop welcome. Note: My advice is based on my own experience or on something I read in these forums. No guarantee it'll work for you! Make sure that you always BACKUP the database and the files you are going to change so that you can rollback to a working version if things go wrong. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.