OdooWiki OCA HUB

Website Sale Variant Extra Field

website_sale_variant_extra_fields folder_open OCA/e-commerce open_in_new
Website License: LGPL-3

The standard Product Page Extra Fields configuration lets a website manager pick product fields to display on the shop product page. It only supports char and binary fields on the product template, and the displayed value is read once when the page loads, so it never updates when the customer switches variants.

This module removes both limitations:

  • product variant fields can be selected, in addition to product template fields;
  • more field types are supported: multi-line text, numbers, dates, datetimes, dropdown (selection) values and linked records, in addition to char and binary fields;
  • when a variant field is selected, its value refreshes live on the product page as soon as the customer picks a different combination of attributes.
  • decimal numbers are displayed with the number of decimals configured for the selected field.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Lets website managers display product variant fields (and more field types) in the shop product page extra fields block, with values that refresh live when the customer switches variant.

This module extends the standard "Product Page Extra Fields" configuration of the Website Sale app. When a website manager configures extra fields to show on a product page, they can now also pick fields that belong to the product variant (product.product) and not only fields of the product template.

  • More field types are allowed: multi-line text, whole numbers, decimals, dates, datetimes, dropdown (selection) values, linked records and file attachments, in addition to the simple text and binary fields supported before.
  • Decimal values are shown with the number of decimals configured on the field.
  • When a variant field is selected, its value is refreshed on the product page as soon as the customer chooses a different combination of attributes, without reloading the page.

The extra fields block stays visible on the page as soon as at least one variant field is configured, even if the currently displayed variant has no value, so the live refresh always has something to update. The block is rendered through the standard QWeb field converters, and file fields are shown as a download link. The module touches product.template (through _get_combination_info), website.sale.extra.field and the shop product page template.

Depends on

website_sale
Models and fields (2)
  • product.template · extends an existing model
  • website.sale.extra.field · extends an existing modelfield_id, is_variant_field

Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 19.0

Confirmed on 2026-11-03 in branch 19.0 of OCA/e-commerce.

terminal Installation and usage

OCA documentation · Odoo 19.0
  • Go to Website \> Configuration \> Settings and open the Product Page Extra Fields configuration of the website.
  • Add a line and pick any field of a product or of a product variant. Text, multi-line text, file, number, date, date and time, dropdown, and linked record fields are available.
  • Go to the shop and open a product page. The label and the value of each selected field are displayed below the product details (if the field has a value on the displayed product or variant).
  • Select another variant attribute on that page. The values coming from a product.variant field are updated immediately, while the values coming from a product.template field stay unchanged.

A variant field with no value on the displayed variant is simply hidden, and appears again as soon as the customer selects a variant that has a value.

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.