Jump to content

Programatically add/create multistore shop?


Recommended Posts

I have multiple domain names (more than three)

  • mydomain.com
  • somedomain.com
  • thisdomain.net

All the domains are loading the same WordPress located in the "/var/www/html/". I have and installed Prestashop 1.7 in "/var/www/html/store/" using "mydomain.com". When I go to "somedomain.com/store/" or "thisdomain.net/store/" it redirects to "mydomain.com/store/".

 

I have never setup a multistore and when I just tried doing so, I noticed that it does it one domain at a time. The two questions I have are:

 

  1. What does Prestashop's engine do when a new domain is added? Does it only create MySQL tables for that domain? If yes, how much memory does each new domain adds to MySQL? Does it add any files to the harddrive? If yes, how many? Which ones? And how much memory it takes for each added domain?
  2. Is there a programmatic way add multiple (many) domains to show the same store?

Thanks

Link to comment
Share on other sites

Your question is something like, can someone help to make a module?

You need take a look at PrestaShop documentation, and also there is a rule in most of forums to search first your question, if you can find nothing similar, then create a new thread with that issue, in your case, you can find a lot of threads with the same question.

 

Good luck!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...