Odoo Community Association

Website Sale Comparison Specification Variant

Beta License: AGPL-3 OCA/e-commerce Translate me on Weblate Try me on Runboat

On the eCommerce product page, the “Specifications” display added by website_sale_comparison (shown as a table, an accordion item, or both, depending on the theme’s display options) lists every attribute of the product, whose values can be restricted to specific variant combinations via the attribute value’s “Exclude for” configuration.

Without this module, that display always lists every configured value of such an attribute, and never updates when the customer changes the selected variant. This module makes it show only the value(s) actually compatible with the combination currently selected on the page, and refreshes it when the customer changes variant. This applies to every attribute type, not only non-variant-defining (“informative”) ones.

The comparison page (/shop/compare) is covered too: for each compared product, a non-variant-defining attribute only lists the value(s) compatible with that product’s own variant. Variant-defining attributes are unaffected there, since the comparison page already shows each product’s own actual value for them.

Table of contents

Usage

  1. Go to Website > Products > Attributes.
  2. On an attribute’s value, configure “Exclude for” to list the value(s) (of any attribute type) it is incompatible with.
  3. On the eCommerce product page, the “Specifications” display (table and/or accordion item, depending on the theme’s display options) will only show the value(s) of that attribute compatible with the currently selected variant, and will update automatically when the customer changes it. 3.1 On the comparison page (/shop/compare), each compared product’s specifications will only show the value(s) of a non-variant-defining attribute compatible with that product’s own variant.

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Camptocamp

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/e-commerce project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.