Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

One Database 2 websites


ferpravia

Recommended Posts

Posted

Hi there,

I have a simple question, but i can't figure it out.

I want to have websites with oscommerce running 1 database (same database for both).

1 is up and running, I'll install the second one, what should i do during installation when I'm asked to import a database and create sample files?

 

Thank you

 

Best Regards,

 

Fernando

Posted

Would both sites be used for same products?

if yes, why do you want to install oscommerce twice? You can just point one domain to redirect to your store ?

 

Thanks,

Gaurav

Best Regards,
Gaurav

Posted

Hi there, yes i though of that, the thing is i'm making one specific for a country but i will be selling the same products. Regards. Fernando

Posted
Hi there, yes i though of that, the thing is i'm making one specific for a country but i will be selling the same products. Regards. Fernando

Hi Fernando,

In that case, I would suggest to make one site only, and based on user IP - you can pass a variable to switch whatever you want for a specific country. Else you can have one database provided your host allows mysql connections to be shared between domains (generally it is restricted, so connections are allowed only from one domain). To make the magic work, you have to test new osc installation with database connection settings in configure.php. If connection succeeds, you can do it, if dbconnection fails, I am afraid, you would have to test other options.

 

Cheers,

Gaurav

Best Regards,
Gaurav

Posted

Thank you very much, for your help. It's working, I put same access data for the database and it worked.

 

Thank you very much

 

Regards

Archived

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

×
×
  • Create New...