Skip to content

[ADD] website_sale_product_attribute_filter_range: range slider filter for numeric attributes#1187

Open
munikes wants to merge 1 commit intoOCA:18.0from
EthicHub:18.0-add-website_sale_product_attribute_filter_range
Open

[ADD] website_sale_product_attribute_filter_range: range slider filter for numeric attributes#1187
munikes wants to merge 1 commit intoOCA:18.0from
EthicHub:18.0-add-website_sale_product_attribute_filter_range

Conversation

@munikes
Copy link
Copy Markdown

@munikes munikes commented Mar 26, 2026

Summary

  • Adds a new Range Slider display type for product attributes on the website shop
  • When configured, the attribute appears as a dual-handle range slider (similar to the built-in price filter) instead of standard checkboxes
  • Allows customers to filter products by numeric ranges (scores, weights, dimensions, etc.)

Features

  • New "Range Slider" option in attribute Display Type (selection_add)
  • Configurable Range Step increment per attribute
  • Automatic Numeric Value parsing from attribute value names (supports dot and comma decimals)
  • Works in both desktop sidebar and mobile offcanvas
  • SQL constraint ensures range attributes use no_variant mode
  • URL parameter format: attrib_range=attr_id-min-max

Configuration

  1. Go to Inventory > Configuration > Attributes
  2. Set Display Type to Range Slider
  3. Set the Range Step (default 0.5)
  4. Ensure attribute values have the Numeric Value field set

Test plan

  • 5 unit tests passing on Odoo 18.0 (Odoo.sh)
  • Desktop sidebar: slider in correct position
  • Mobile offcanvas: slider between attributes and price filter
  • URL filtering works (?attrib_range=9-82-88)
  • Constraint prevents range + variant creation
  • i18n: Spanish translations included

@munikes munikes force-pushed the 18.0-add-website_sale_product_attribute_filter_range branch 6 times, most recently from 9f73279 to 8aa745c Compare March 28, 2026 12:59
…r for numeric attributes

Add a new "Range Slider" display type for product attributes on the
website shop. When configured, the attribute appears as a dual-handle
range slider (similar to the built-in price filter) instead of the
standard checkboxes, allowing customers to filter by numeric ranges.

Features:
- New "Range Slider" option in attribute Display Type
- Configurable step increment per attribute
- Automatic numeric value parsing from attribute value names
- Works in both desktop sidebar and mobile offcanvas
- SQL constraint ensures range attributes use no_variant mode
- URL parameter format: attrib_range=attr_id-min-max
@munikes munikes force-pushed the 18.0-add-website_sale_product_attribute_filter_range branch from 8aa745c to c2f17de Compare March 28, 2026 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant