horuss Posted December 5, 2020 Share Posted December 5, 2020 Hi. Can someone help me to set my second shop as a main shop? I want to leave my currently second shop alive and disable my main shop completely. cheers Link to comment Share on other sites More sharing options...
Bill Dalton Posted December 7, 2020 Share Posted December 7, 2020 In MULTISTORE OPTIONS you may change default shop using drop down option. Link to comment Share on other sites More sharing options...
horuss Posted December 7, 2020 Author Share Posted December 7, 2020 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 Link to comment Share on other sites More sharing options...
Bill Dalton Posted December 7, 2020 Share Posted December 7, 2020 Did you create 2 shops in one group? Or did you create two groups with one shop in each? In your database the groups are in ps_shop_group The shops are in ps_shop_url Link to comment Share on other sites More sharing options...
horuss Posted December 7, 2020 Author Share Posted December 7, 2020 I created 2 shops in one group.... Link to comment Share on other sites More sharing options...
Bill Dalton Posted December 7, 2020 Share Posted December 7, 2020 So then mayhap I misunderstand the problem. Do you have both domains properly set to your host? Prestashop dosen't handle that part. You need to have both domains pointing to your host. Link to comment Share on other sites More sharing options...
horuss Posted December 7, 2020 Author Share Posted December 7, 2020 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.. Link to comment Share on other sites More sharing options...
Bill Dalton Posted December 7, 2020 Share Posted December 7, 2020 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? Link to comment Share on other sites More sharing options...
horuss Posted December 7, 2020 Author Share Posted December 7, 2020 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. Link to comment Share on other sites More sharing options...
horuss Posted December 7, 2020 Author Share Posted December 7, 2020 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? Link to comment Share on other sites More sharing options...
Bill Dalton Posted December 7, 2020 Share Posted December 7, 2020 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 Link to comment Share on other sites More sharing options...
horuss Posted December 7, 2020 Author Share Posted December 7, 2020 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;-( Link to comment Share on other sites More sharing options...
Bill Dalton Posted December 7, 2020 Share Posted December 7, 2020 But you said that you could reach your shop with both domains. So you cannot reach your store with either domain? Link to comment Share on other sites More sharing options...
Bill Dalton Posted December 7, 2020 Share Posted December 7, 2020 And do you know how to access your database? Link to comment Share on other sites More sharing options...
Bill Dalton Posted December 7, 2020 Share Posted December 7, 2020 In your database find table ps_shop_url and set your domain to active by entering 1 in the active field Link to comment Share on other sites More sharing options...
horuss Posted December 7, 2020 Author Share Posted December 7, 2020 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 Link to comment Share on other sites More sharing options...
Bill Dalton Posted December 7, 2020 Share Posted December 7, 2020 That should do it. Gotta love them backups Link to comment Share on other sites More sharing options...
horuss Posted December 8, 2020 Author Share Posted December 8, 2020 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. Link to comment Share on other sites More sharing options...
Bill Dalton Posted December 8, 2020 Share Posted December 8, 2020 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now