Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Magento: Setting the default homepage / store when you have multiple stores

Tags:

magento

I have a Magento installation with two store versions: Store A and Store B. When you go to 'mydomain.com' I get this error message:

'There was no Home CMS page configured or found.'

Until you click on the link for either Store A or Store B -- then it saves the store in a cookie called 'store' and remembers this when you go to 'mydomain.com'.

Is it possible to set 'Store A' as the selected store / homepage by default if no 'store' cookie exists yet?

Thanks for any help!

like image 586
Flight643 Avatar asked Sep 21 '11 00:09

Flight643


People also ask

How do I change the default store in Magento 2?

Go to Stores > All Stores and choose the Store you want to change the default store view for.

How do I change my homepage in Magento?

Configure the default pages in Magento 2On the Admin panel, click Stores . In the Settings section, select Configuration . Open the Default Pages section, and continue with following: In the Default Web URL field, the default value cms or enter other value as needed.

Is multiple store creation possible in Magento 2?

Magento allows you to have multiple stores under the same domain, set them as subdomains of the main domain or have completely new domains. Based on that, one last step when creating multiple stores on Magento 2 website is to set the store URL.

Does Magento support multi store?

Each domain or website can manage multiple Magento 2 stores, while you can also have multiple domains on a single installation. Magento Multistores (Stores): These are your actual product catalogs. They are created on a single domain you can also define it as Magento multi website single domain store.


2 Answers

In the admin you go to System -> Configuration -> Web -> Default Pages

You will have to change to the website / store view that you want to change (the dropdown in the upper left corner). You will probably have to create a new CMS page if you want to have something different from your default home page.

like image 122
Josh Pennington Avatar answered Dec 06 '22 18:12

Josh Pennington


go to System -> CMS -> Pages
choose Home Page Cms
and asign all view states that you want them for this cms
you could do it for another cms too

like image 32
masoud2011 Avatar answered Dec 06 '22 18:12

masoud2011