jeremiahstjames Posted October 14, 2006 Posted October 14, 2006 In the process of taking out the sample text on my index.php file, i managed to delete necessary code i think. i am getting an error now instead of my store index page... is there a place to download the original index.php file to start over? the fil i'm talking about was in [catalog/includes/languages/english/index.php] this is the file that i messed up the coding on... i guess i could post the code and one of you geniuses can tell me what is left out. here's what i've got, PLEASE HELP: <?php define('TEXT_MAIN', 'Welcome to the TARDEX product line\! <b>Krap fer tards\!</b> Please exit your short bus safely... strap on your helmet and have a blast shopping our just browsing our krap\.<br>'</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'); } ?>
♥14steve14 Posted October 14, 2006 Posted October 14, 2006 You can download the original from where you downloaded it in the first instance. What you have learnt though is to backup any files before messing the code up. REMEMBER BACKUP, BACKUP AND BACKUP
starcad Posted October 14, 2006 Posted October 14, 2006 In the process of taking out the sample text on my index.php file, i managed to delete necessary code i think. i am getting an error now instead of my store index page... is there a place to download the original index.php file to start over? the fil i'm talking about was in [catalog/includes/languages/english/index.php] this is the file that i messed up the coding on... i guess i could post the code and one of you geniuses can tell me what is left out. here's what i've got, PLEASE HELP: <?php define('TEXT_MAIN', 'Welcome to the TARDEX product line\! <b>Krap fer tards\!</b> Please exit your short bus safely... strap on your helmet and have a blast shopping our just browsing our krap\.<br>'</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'); } ?> Gee, I think I say this more than anyone here. Before you even start to mod you site you should make a back up on everything on your local hard drive. That includes the Database and leave those files as a backup. Now when you decide to change a file download that file to your hard drive in a different directory and have at it. When finished then up load the file back into place and test it. If all goes well then your good to go. After you have moded a few thing like the logo, admin login, css,etc. then you will want to backup the site again only this time you make a special folder called backup on your Hard Drive and save all the files there again along with the DataBase. This way if you have a problem then you can always revert back to the backup files and your up and running in minutes instead of hour or days of lost revinue. Here is a link to a site that can help you out alot.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.