[IMP] sales: subscription products in ecommerce

closes odoo/documentation#12043

X-original-commit: 710854226d
Signed-off-by: Zachary Straub (zst) <zst@odoo.com>
Signed-off-by: Dina Klarisse Dugar (dikd) <dikd@odoo.com>
This commit is contained in:
dikd-odoo 2025-02-12 00:52:16 +00:00
parent a00a6f5583
commit cd2e27084d
5 changed files with 11 additions and 44 deletions

View File

@ -4,55 +4,22 @@ 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 :guilabel:`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.
.. seealso::
- :doc:`Configure subscription products </applications/sales/subscriptions/products>`
- :doc:`Product variants </applications/sales/sales/products_prices/products/variants>`
Create recurrence periods as product variants
=============================================
Selling eCommerce subscriptions
===============================
To set up each recurrence period as a product variant, go to :menuselection:`Subscriptions app -->
Products --> Products`, and select a product. In the :guilabel:`Attributes & Variants` tab, click
:guilabel:`Add a line`.
:doc:`Configure the subscription product <products>` as a regular recurring sales product. To
start selling the subscription in the eCommerce shop, click the :guilabel:`Go to Website` smart
button to navigate to the product page.
Then proceed to create an :guilabel:`Attribute` called `Billing Period` (or something similar), by
typing in the name, and clicking :guilabel:`Create` from the mini drop-down menu that appears. This
attribute name appears as option heading on the product page of the eCommerce shop.
From here, review the subscription product and its recurring periods. Then, toggle the switch in the
upper-right corner from :guilabel:`Unpublished` to :guilabel:`Published`.
Next, create :guilabel:`Values` that correspond to the recurrence periods that are configured in
the :guilabel:`Recurring Prices` tab of the product form.
The new subscription product is now available to purchase on the eCommerce website, with options
for the different recurring periods.
To do that, type in the name of the recurrence period in the :guilabel:`Values` column, on the same
:guilabel:`Attribute` line, in the :guilabel:`Attributes & Variants` tab. Then, click
:guilabel:`Create` from the mini drop-down menu that appears.
These value names appear as selectable options on the product page of the eCommerce shop.
.. image:: ecommerce/recurrence-period-attributes-variants.png
.. image:: ecommerce/subscription-product.png
:align: center
:alt: Recurrence periods configured as product variants in the "Attributes & Variants" tab of
the product form.
With those configurations in place and saved, a :guilabel:`Product Variants` column appears in the
:guilabel:`Recurring Prices` tab. Proceed to assign the different :guilabel:`Product Variants` to
their corresponding recurrence :guilabel:`Period` and :guilabel:`Price`.
.. image:: ecommerce/product-variants-time-based-pricing.png
:align: center
:alt: Product variants on the "Time-based pricing" tab of the product form.
After following those aforementioned steps, the product variants are available for selection on the
eCommerce product page.
.. image:: ecommerce/recurrence-period-ecommerce.png
:align: center
:alt: Recurrence periods configured as product variants on the eCommerce product page.
:alt: Subscription product on eCommerce website.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB