Subscriptions in the eCommerce shop¶
Subscription products can be sold in the Odoo eCommerce shop just like regular sales products.
However, by default, the eCommerce product page only displays the shortest recurrence period listed in the Recurring Prices tab of the product form.
For example, if a subscription product has monthly and annaul recurrence periods configured, then only the monthly price appears on the eCommerce page for that product, by default.
To add more recurrence periods to the eCommerce product page, create a product variant for each recurrence period.
Create recurrence periods as product variants¶
To set up each recurrence period as a product variant, go to Attributes & Variants tab, click Add a line.
, and select a product. In theThen proceed to create an Attribute called Billing Period
(or something similar), by
typing in the name, and clicking Create from the mini drop-down menu that appears. This
attribute name appears as option heading on the product page of the eCommerce shop.
Next, create Values that correspond to the recurrence periods that are configured in the Recurring Prices tab of the product form.
To do that, type in the name of the recurrence period in the Values column, on the same Attribute line, in the Attributes & Variants tab. Then, click Create from the mini drop-down menu that appears.
These value names appear as selectable options on the product page of the eCommerce shop.
![Recurrence periods configured as product variants in the "Attributes & Variants" tab of the product form.](https://www.odoo.com/documentation/17.0/_images/recurrence-period-attributes-variants.png)
With those configurations in place and saved, a Product Variants column appears in the Recurring Prices tab. Proceed to assign the different Product Variants to their corresponding recurrence Period and Price.
![Product variants on the "Time-based pricing" tab of the product form.](https://www.odoo.com/documentation/17.0/_images/product-variants-time-based-pricing.png)
After following those aforementioned steps, the product variants are available for selection on the eCommerce product page.
![Recurrence periods configured as product variants on the eCommerce product page.](https://www.odoo.com/documentation/17.0/_images/recurrence-period-ecommerce.png)