Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Second site


Diaz

Recommended Posts

Hi

 

Can someone please point me in the right direction for using the same database for a second site.

 

I do not mind if I get links to past post about this, just can not find them my self.

 

 

TIA

 

Analiza

 

______________________

www.craftshop-online.com

Link to comment
Share on other sites

Check the config of your first store for the db settings. You'll find it in /includes/configure.php. If the 2 sites are on the same machine and the db is local just copy that portion into the config of your second store.

 

Should look something like:

 

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', 'killerbees');

define('DB_SERVER_PASSWORD', 'wedontneednostinkinpasswords');

define('DB_DATABASE', 'OSC14');

 

HTH,

Iggy

Everything's funny but nothing's a joke...

Link to comment
Share on other sites

Darn, I just copied a folder from the other store to the new one and had to reset the whole thing again! :blush: It showed all the items right away but once I clicked on them they all went back to the old store. LOL (Not)

 

I guess what you just posted will not do that Iggy, right?

 

:'(

 

TIA

Link to comment
Share on other sites

Yep. You only want to pull data from the database so replacing the config just loads up all the old url info. Don't do that :-"

 

Open the file instead once the second store is up and running then manually copy/paste just the info you need in the second config file. All you need is there in the example above.

 

Iggy

Everything's funny but nothing's a joke...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...