Guest Posted December 22, 2004 Posted December 22, 2004 I have just started digging the osc and i have messed up with it bigtime. Now i dont know how to recover the index.php under http://villasdecor.com/ecommerce/os/catalog and the one from http://villasdecor.com/ecommerce/os/catalo...nguages/english which is the one that should have been edited. Is there a way that I can recover the original codes when i downloaded the oscommerce or can somebody send me a code that I can start with. I really need help. I also want to know how to make my domain name the first page of my store. Please help.
Guest Posted December 22, 2004 Posted December 22, 2004 You can just re-download osCommerce from http://www.oscommerce.com/solutions/downloads and copy over those files. To move it up to the root of your store, just move the file structure where you want it (i.e. to something like public_html/ instead of something like public_html/catalog or public_html/ecommerce/catalog - - your exact path depends on how your server has been set up by your host). Be sure to edit your includes/configure.php and admin/includes/configure.php accordingly. -jared
Guest Posted December 22, 2004 Posted December 22, 2004 I redownloaded the source from the site that you have given me then deleted the one i messed up and then uploaded the one that I have downloaded and when i go to ecommerce and click on my user interface to display the store it is giving me this message : Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home/villasde/public_html/ecommerce/os/catalog/includes/functions/database.php:13) in /home/villasde/public_html/ecommerce/os/catalog/includes/functions/database.php on line 13 Im going to be nuts if i this will continue... any help will be greatly appreciated. You can drop me a line at 469-396-5854. :'(
♥Vger Posted December 22, 2004 Posted December 22, 2004 Be sure to edit your includes/configure.php and admin/includes/configure.php accordingly. Vger
Guest Posted December 23, 2004 Posted December 23, 2004 well the thing is i dont know which one to edit on includes/configure.php and admin/includes/configure.php. I have no clue whatsoever.
Guest Posted December 30, 2004 Posted December 30, 2004 If you post them both here, minus the login info, we can help better. -jared
Guest Posted December 30, 2004 Posted December 30, 2004 Thanks for the replies that was given to me but what I did was just remove the whole oscommerce and then redownload and start from scratch. My main concern right now is that whenever I edit the first page which is the file [path to catalog]/include/languages/english/index.php it doesnt seem to work. I followede the steps that was given by oscommerce on which file to edit but i guess im just lost. Another scenario is that when i use the administration tools and go to the index.php it gives me the message that it cannot write to that file and I have to set the right permission. With this one I dont know where to set the permission. This is the text that is shown on the first page of the OScommerce that I wanted to edit. "The text shown here can be modified in the following file, on each language basis: [path to catalog]/includes/languages/english/index.php That file can be edited manually, or via the Administration Tool with the Languages->English->Define or Tools->File Manager modules. The text is set in the following manner: define('TEXT_MAIN', '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', '');
Alfredk Posted December 30, 2004 Posted December 30, 2004 Another scenario is that when i use the administration tools and go to the index.php it gives me the message that it cannot write to that file and I have to set the right permission. With this one I don't know where to set the permission. To set the permission on files, directories etc. depends on how you access your server and what type of server you use. On UNIX you use the CHMOD command and on Windows it depends again on your operating system. Please don't take offense when I tell you that it might be good for you to read up on basic server use and terminology, it will save you countless hours of pain if you do. Alfred
Recommended Posts
Archived
This topic is now archived and is closed to further replies.