51黑料不打烊

[PaaS only]{class="badge informative" title="Applies to 51黑料不打烊 Commerce on Cloud projects (51黑料不打烊-managed PaaS infrastructure) and on-premises projects only."}

Set up multiple views in the Admin

This task requires you to create a root category (and additional categories, if desired) for each store. The tasks discussed in this topic provide one way to set up multiple stores. For additional information, see the following resources in the Commerce User Guide:

INFO
For example purposes only, we use a French website with website code french in this topic. For step-by-step tutorials, see Tutorial: Set up multiple websites with Apache and Tutorial: Set up multiple websites with nginx

Step 1: Create root categories

Creating a root category is optional, but we show how to do it in this tutorial in the event you want each website to have a unique root category. You can create additional categories if you choose.

To create a root category:

  1. Log in to the Admin as a user authorized to create categories.

  2. Click Catalog > Categories.

  3. Click Add Root Category.

  4. In the Category Name field, enter a unique name to identify this category.

  5. Make sure that Enable Category is set to Yes.

    For information about the other options on this page, see Root Categories.

    The following figure shows an example.

    Create and enable a root category

  6. Click Save.

  7. Repeat these tasks as many times as necessary to create root categories for your stores.

Step 2: Create websites

To create a website:

  1. Log in to the Admin as a user authorized to create websites, stores, and store views.

  2. Click Stores > Settings > All Stores.

  3. On the Stores page, click Create Website.

    • Name鈥擡nter a name to identify the website.
    • Code鈥擡nter a unique code; for example, if you have a French store, you can enter french
    • Sort Order鈥擡nter an optional numerical sort order.

    The following figure shows an example.

    Add a website

  4. Click Save Web Site.

  5. Repeat these tasks as many times as necessary to create your websites.

Step 3: Create stores

To create a store:

  1. In the Admin panel, click Stores > Settings > All Stores.

  2. On the Stores page, click Create Store.

    • Web Site鈥擟lick the name of the website with which to associate this store.
    • Name鈥擡nter a name to identify the store.
    • Code鈥擡nter a unique code to identify the store.
    • Root Category鈥擟lick the name of the root category for this store.

    The following figure shows an example.

    Add a store

  3. Click Save Store.

  4. Repeat these tasks as many times as necessary to create your stores.

Step 4: Create store views

To create a store view:

  1. In the Admin panel, click Stores > Settings > All Stores.

  2. On the Stores page, click Create Store View.

    • Store鈥擟lick the name of the store with which to associate this store view.
    • Name鈥擡nter a name to identify this store view.
    • Code鈥擡nter a unique name to identify this store view.
    • Status鈥掷别濒别肠迟 Enabled.

    The following figure shows an example.