ramlion Posted October 27, 2006 Posted October 27, 2006 Hi I have a need to have 2 shops in the same domain. I created the first shop with oscommerce and did all the necessary design and text changes. I installed it to Mydomain/shop1. When I finished I then cloned the file shop1 and called it shop2 and installed it in MYdomain/shop2. I then went (shop2) to the includes/configure.php file and the admin/includes/configure.php file and changed anything that said ..../shop1/ to ...../shop2/. This was great everything works perfectly until I add or delete from the admin control panel. If for instance I add a product it appears in both shops. I suspect that the "define('DB_SERVER_PASSWORD'," should be different between the 2 shops but I am not sure what to change or where. Does anyone have a solution??? kenny
digbydo Posted October 27, 2006 Posted October 27, 2006 will this solve your problem ? http://www.oscommerce.com/community/contributions,1730 one-click installation.. Dave's info
jscrilla Posted October 27, 2006 Posted October 27, 2006 Well, I'm not an expert, but wouldn't you need to change where Shop2 calls to the database? If you're using the same database for each store, then you'll have the same products for both. If you go into PHPMYADMIN and create a new database for Shop2, then link to it in the configure file, then you should get better results. Again, just a suggestion. I may be way off here.
ramlion Posted October 28, 2006 Author Posted October 28, 2006 Hi I have a need to have 2 shops in the same domain. I created the first shop with oscommerce and did all the necessary design and text changes. I installed it to Mydomain/shop1. When I finished I then cloned the file shop1 and called it shop2 and installed it in MYdomain/shop2. I then went (shop2) to the includes/configure.php file and the admin/includes/configure.php file and changed anything that said ..../shop1/ to ...../shop2/. This was great everything works perfectly until I add or delete from the admin control panel. If for instance I add a product it appears in both shops. I suspect that the "define('DB_SERVER_PASSWORD'," should be different between the 2 shops but I am not sure what to change or where. Does anyone have a solution??? kenny Thanks for the link, i do not think it is what I am looking for however. As I will have the need to do this again I would like a more simple solution since there appears to be only a small change somewhere to make, I just don't know where to make it. I have set up another shop in Mydomain/shop3 but this time I did not clone it, I loaded it as I would for the first. When adding or deleting products from this shop it does not affect the other two. Thus if I knew exactly where and what was happening with the cloned version, I could I am sure fix it by using the appropriate php files from shop3 and pop them into shop2. My grasp of php and what is happening with oscommerce is a little slim for the task. Kenny
♥Monika in Germany Posted October 28, 2006 Posted October 28, 2006 it's just the 2 configure.php files ... you changed the domain and paths I guess? You need to change those, pluse the database name. :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
ramlion Posted October 28, 2006 Author Posted October 28, 2006 Hi Monika Yes the cinfigure.php files have been changed for the correct path ie shop1 and shop2. However I am not sure exactly what else needs changed to seperate the shops from the cloning procedure(cloning if I can now solve this problem will save 10s of hours). Are you saying it is the database name in both configure files that needs to be changed as well? kenny
♥Monika in Germany Posted October 28, 2006 Posted October 28, 2006 when you clone a site, you have to: 1) export the current database, create a new one and import the backup into that new database, note down connection parameters 2) clone all osC files and copy to a new folder 3) open both config files in the new clone, edit a) domain and folder names B) physical paths on server c) database name (You may or may not want to use same login/password, modify accordingly) :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.