Guest Posted July 2, 2009 Posted July 2, 2009 Hi all, I have a working e-commerce (osCommerce) site. Let's say it's at http://mydomain.com/store Now I felt that that site looks too basic and not attractive enough, so I've started working on a second store (it was a template that I downloaded from the internet) locally on my hard drive. Last night I decided to upload the new store (let's call it 'newstore') to mydomain.com. I left the original "install" folder and when I typed http://mydomain.com/newstore in the URL, I got prompted to install again. I'm not sure what to do. Should I re-install and create a new database? I'm worried this will muck up my working and existing store. Or should I delete the install folder and just edit the configure.php files so that this newstore will connect to the existing database? Help! Thanks very much in advance :)
♥ecartz Posted July 2, 2009 Posted July 2, 2009 Should I re-install and create a new database? I'm worried this will muck up my working and existing store. Or should I delete the install folder and just edit the configure.php files so that this newstore will connect to the existing database? Help!If you want the new store to eventually replace the old store, you might as well just edit the configure.php files. The only issue that might arise is if the new store template uses a different database schema (newer or older). In that case, you would want to set up a new database for it. Of course, it would be better to find that out now than later, so you might as well try the configure.php route first. Always back up before making changes.
Guest Posted July 2, 2009 Posted July 2, 2009 Hi Matt, thanks for that. It does use a different database schema. So that means I will have to "install" osCommerce again won't I?
richms Posted July 2, 2009 Posted July 2, 2009 Install kills your database, so dont do it. I just copied the configure.php files between the installs and edited the paths to be correct. When I was setting up a second store on the same host I had to edit the php that has the tables in it and put a prefix infront of the tables for the second store. There are 2 files, one in the catalog/includes and one in the admin/includes so do both.
♥ecartz Posted July 3, 2009 Posted July 3, 2009 It does use a different database schema. So that means I will have to "install" osCommerce again won't I?If you do, make sure that you use a different database. Many hosts allow you to have three or five (rather than just one). Alternately, you can go through the .sql file and rename all the tables, e.g. products could become test_products and customers could become test_customers. Then the new files won't overwrite the old. It would still be a good time to backup your old database. It would really suck to miss an important table. Always back up before making changes.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.