多个网站

Odoo允许您从同一数据库创建多个网站。这可能很有用,例如,如果您的组织下有多个品牌运营,或者为不同的产品/服务或不同的受众创建单独的网站。在这些情况下,拥有不同的网站可以帮助避免混淆,并更容易地定制您的数字推广策略,以及触达目标受众。

Each website can be designed and configured independently with its own domain name, theme, pages, menus, languages, products, assigned sales team, etc. They can also share content and pages.

小技巧

重复内容(即在多个网站之间共享的页面和内容)可能对 搜索引擎优化(SEO) 产生负面影响。

网站创建

要创建一个新的网站,请按照以下步骤进行:

  1. 转到 网站 ‣ 配置 ‣ 设置

  2. 点击 + 新建网站

    新网站按钮
  3. Specify the Website Name and Website domain. Each website must be published under its own domain.

  4. Adapt the Company name, Languages and Default language if needed.

  5. 点击 创建 按钮。

您可以开始构建您的新网站。

注解

By default, all website-related apps that you have installed (e.g. eCommerce, Forum, Blog, etc.) and their related website pages are also available on the new website. You can remove them by amending the website’s menu.

切换网站

To switch from one website to another, click the menu next to the +New button in the top right corner and select the website you want to switch to.

网站选择器

注解

When you switch websites, you are redirected to the homepage of the other website.

网站特定配置

Most website settings are website-specific, which means they can be enabled/disabled per website. To adapt the settings for a website, go to Website ‣ Configuration ‣ Settings. Select the desired website in the field Settings of Website at the top of the Settings page, in the yellow banner. Then, adapt the options for that specific website.

注解

  • 网站是使用默认设置创建的;设置不会从一个网站复制到另一个网站。

  • In a multi-company environment, each website can be linked to a specific company in your database so that only company-related data (e.g., products, jobs, events, etc.) is displayed on the website. To display company-specific data, set the desired company in the Company field.

内容可用性

默认情况下,从前端(使用 +新建 按钮)创建的页面、产品、事件等只能在创建它的网站上使用。然而,从后端创建的记录默认情况下在所有网站上都可用。可以在后端的 网站 字段中更改内容的可用性。例如,对于产品,转到 电子商务 ‣ 产品,然后选择产品并转到 销售 选项卡。对于论坛,转到 配置 ‣ 论坛,然后选择论坛。

论坛表单中的网站字段

记录和功能可以提供:

  • On all websites: leave the Website field empty;

  • Only on one website: set the Website field accordingly;

  • 在一些网站上:在这种情况下,您应该复制该项并设置 Website 字段。

网站页面

要修改要发布页面的网站,请按照以下步骤进行:

  1. 转到 网站 ‣ 网站 ‣ 页面

  2. Open the search panel and select the website on which the page is currently published.

    显示每个网站的页面数
  3. 勾选您想要更改的页面旁边的复选框。

  4. Click the Website field and select the website, or empty it to publish the page on all websites.

注解

每个网站必须有自己的首页;您不能为多个网站使用相同的首页。

电子商务功能

eCommerce features such as products, eCommerce categories, pricelists, discounts, payment providers, etc. can be restricted to a specific website.

客户账户

您可以在网站设置中启用 共享客户账户 复选框,从而允许您的客户在所有网站上使用相同的账户。详细信息请参阅 允许客户在所有网站上使用相同账户

定价

产品可以根据使用的网站以不同的价格定价: 价格表 。需要进行以下配置:

  1. 转到 网站 ‣ 配置 ‣ 设置

  2. 向下滚动到 商店 - 产品 部分,选择 价格表 选项 每个产品多个价格

  3. Click Pricelists to define new pricelists or edit existing ones.

  4. 选择价格表或点击 新建 创建一个新的,然后选择 配置 选项卡并设置 网站 字段。

报告

分析

Each website has its own analytics. To switch between websites, click the buttons in the upper right corner.

在分析中切换网站

其他报告数据

Other reporting data such as eCommerce dashboard data, online sales analyses and visitors can be grouped by website if necessary. Open the search panel and select Group by –> Website.