Jump to content

How to set second shop as a main shop at multistore


Recommended Posts

Thanks Bill I know what you mean and I did set store B as default but still the store A is my primary one. All installation is under store A so I think It requires some modifications in the database or something

Share this post


Link to post
Share on other sites

no. I have like main root with all installation files under the main store domain and secondary store is like just pointing to the main store. like alias with no files. And I want that second store to be the main one. hope its not too confusing..

Share this post


Link to post
Share on other sites

You need to have both domains pointing to your root.

If that is correct you should be able to reach your store with both domains. Can you reach your PrestaShop with both domains or just one of your domains?

Share this post


Link to post
Share on other sites

yeah I can reach with the domain of secondary store I want to be the main. But I don't know what happens if I turn the multistore off if only the main domain has actually the installation files. 

Share this post


Link to post
Share on other sites

I guess I need to somehow setup the installation files at server provider or the database so the secondary store will become primary with all installation files. Is it correct? 

Share this post


Link to post
Share on other sites

Ok, the way it works is there is only one set of files. If you turn off multistore - General Preferences

You set the domain at Traffic & SEO >  SEO & URLs - you won't see that until you turn off multistore

 

Share this post


Link to post
Share on other sites

I have turned the multistore off and I can't access the back office anymore;-) I get an 500 internal server error so I need to go to my web server and do the restore of the web. I think it happened because like I said previously all installation files are related to the main store domain;-(

Share this post


Link to post
Share on other sites
6 minutes ago, Bill Dalton said:

I'm just doing the restore of a recent backup so the web will be as it was few hours ago. that seemed to me the easiest how to get back to previous stage 

 

Share this post


Link to post
Share on other sites

exactly 😉

but still didn't solve my problem. that internal server error just proved my secondary domain is acting like alias and primary shop has all installation files. So question still is how to swap those shops around? must be some kind of migration of files within server provider and database modifications. 

Share this post


Link to post
Share on other sites

There are no files. The active domain in your shop can be controlled in the database in the table ps_shop_url

If for some reason you don't have access to that. You should be able to edit the main url "domain" in your multistore settings.

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More