【magento2配置专题5】后台设置多个网站,商店和商店视图

1: 创建产品根目录

  1. 登录到Magento 2后台.
  2. 点击 Products > Categories.
  3. 点击 Add Root Category.
  4. 在 Category Name 输入分类名称.
  5. 确保 Enable Category 设置 Yes.

    如下图:

    Create and enable a root category

  6. 点击 Save.

2: 创建 websites(网站)

  1. 点击 Stores > 设置 > All Stores.
  2. 在商店页面, 点击 Create Website.

    • Name 字段: 输入网站名称.
    • Code 字段: 输入唯一标识
    • Sort Order 字段: 设置一个数字网站排序.

    如下图:

    Add a website

  3. 点击 Save Web Site.

3: 创建商店

  1. 点击 Stores > 设置 > All Stores.
  2. 在商店页面, 点击 Create Store.

    如下图:

    Add a store

  3. 点击 Save Store.

4: 创建商店视图

  1. 点击 Stores > 设置 > All Stores.
  2. 在商店页面, 点击 Create Store.

    如下图:

    Add a store

  3. 点击 Save Store View.

5: 更改网站的基础网址

  1. 在管理页面, 点击 Stores > 设置 > Configuration > General > Web.
  2. Select a scope

  3. Set a base URL

  4. 点击 Save Config.

6: 添加商店code

Select the default config scope

Add the store code to the store's base URL

猜你喜欢

转载自blog.csdn.net/qq2942713658/article/details/81226279