Use subscriptions in the eCommerce shop

訂閱制產品可以像一般產品一樣,放在 Odoo 電子商務 商店中銷售。

However, by default, the eCommerce product page only displays the shortest recurrence period listed in the Time-based pricing tab of the product form. For example, if a subscription product has monthly and yearly recurrence periods configured, then only the monthly price appears on the eCommerce page for that product by default.

若要為電子商務產品頁面新增更多重複周期,請為每個重複周期建立一個 產品款式 (或稱變體)。

建立重複周期作為產品款式變體

To set up each recurrence period as a product variant, go to Subscriptions ‣ Subscriptions ‣ Products and select a product. In the Attributes & Variants tab, click Add a line.

Create an Attribute called Billing Period (or something similar) by typing in the name and clicking Create. This attribute name appears as the option heading on the product page of the eCommerce shop.

Next, create Values that correspond to the recurrence periods that are configured in the Time-based pricing tab of the product form. Type in the name of the recurrence period, then click Create. These value names appear as selectable options on the product page of the eCommerce shop.

在產品表單的「屬性及變體」分頁中,配置為產品變體 的重複周期。

Click on the ☁️ (cloud) icon at the top of the page to save manually. After saving, a Product Variants column appears on the Time-based pricing tab. Assign the product variants to their corresponding recurrence periods and prices.

產品表單上「以時間定價」分頁的產品變體。

The product variants are now available for selection on the eCommerce product page.

在電子商務產品頁面上,配置為產品變體的重複周期。