Skip to main content
Odoo Community Association

Website Sale Hide No Variant Attributes

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

This module keeps attributes that never generate a variant (attributes with their Variant Creation setting on Never, e.g. purely informational specs) out of the website product page’s variant selector, and out of the combination-exclusion rules used to gray out incompatible options.

Without this module, an informational attribute’s value can still exclude a real, variant-defining value through a configured Exclude for rule, even though the informational attribute itself is never shown to the shopper as a selectable option — resulting in a visible option being grayed out because of an attribute the shopper cannot see, with a tooltip naming it.

Table of contents

Usage

This module requires no configuration: it applies automatically to every product attribute whose Variant Creation is set to Never.

  1. On a product, add an attribute with Variant Creation set to Never (e.g. an informational spec such as a material or a care instruction), alongside your normal variant-defining attributes.

  2. Optionally, configure an Exclude for rule on one of that attribute’s values, targeting one of the variant-defining values.

  3. Open the product page on the website: the informational attribute no longer appears in the variant selector, and the variant-defining value targeted by its exclusion rule is no longer grayed out because of it.

  4. Add the product to the cart: the hidden informational attribute never blocks Add to Cart, even when its excluded or default value would have conflicted with the one visibly selected.

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

Contributors

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_website_sale_hide_no_variant_attributes-19.0.1.0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_website_sale_hide_no_variant_attributes-19.0.1.0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 912bc11fc016cef6531252a0906393a50f49585641f5b02a36568dd3d9534df5
MD5 cad0b160599be3bf2f9c448baea5b813
BLAKE2b-256 4318e5fc37988eace67cb7a51a6629e6b4b086ac350f8ad1a959e3cdc0440f05

See more details on using hashes here.

Release history Release notifications | RSS feed

19.0.1.0.0.3

1 file

This release

19.0.1.0.0.2 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page