[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. 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:: .. seealso::
- :doc:`Configure subscription products </applications/sales/subscriptions/products>` - :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 --> :doc:`Configure the subscription product <products>` as a regular recurring sales product. To
Products --> Products`, and select a product. In the :guilabel:`Attributes & Variants` tab, click start selling the subscription in the eCommerce shop, click the :guilabel:`Go to Website` smart
:guilabel:`Add a line`. button to navigate to the product page.
Then proceed to create an :guilabel:`Attribute` called `Billing Period` (or something similar), by From here, review the subscription product and its recurring periods. Then, toggle the switch in the
typing in the name, and clicking :guilabel:`Create` from the mini drop-down menu that appears. This upper-right corner from :guilabel:`Unpublished` to :guilabel:`Published`.
attribute name appears as option heading on the product page of the eCommerce shop.
Next, create :guilabel:`Values` that correspond to the recurrence periods that are configured in The new subscription product is now available to purchase on the eCommerce website, with options
the :guilabel:`Recurring Prices` tab of the product form. for the different recurring periods.
To do that, type in the name of the recurrence period in the :guilabel:`Values` column, on the same .. image:: ecommerce/subscription-product.png
: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
:align: center :align: center
:alt: Recurrence periods configured as product variants in the "Attributes & Variants" tab of :alt: Subscription product on eCommerce website.
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.

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