| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
eCommerce (website_sale)
• Website (website) • Discuss (mail) • Invoicing (account) |
| Lines of code | 173 |
| Technical Name |
website_sale_variant_auto_switch |
| License | OPL-1 |
| Website | https://codemarchant.com |
| Versions | 17.0 18.0 19.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
eCommerce (website_sale)
• Website (website) • Discuss (mail) • Invoicing (account) |
| Lines of code | 173 |
| Technical Name |
website_sale_variant_auto_switch |
| License | OPL-1 |
| Website | https://codemarchant.com |
| Versions | 17.0 18.0 19.0 |
Website Sale Variant Auto Switcher
Improve customer experience with automatic variant switching
Overview
This module enhances the product variant selection experience in your Odoo eCommerce store by automatically switching to valid product combinations instead of showing frustrating "This combination does not exist" error messages.
Similar to how major eCommerce platforms like Amazon handle variant selection, this module intelligently guides customers to available product combinations, reducing cart abandonment and improving conversion rates.
Key Features
Automatic Variant Switching
When a customer selects an invalid combination of product attributes, the module automatically switches to the closest valid combination that matches their intent.
Works with Odoo's Visual Indicators
Works seamlessly with Odoo's built-in visual indicators that show unavailable options, automatically switching to valid alternatives when customers select them anyway.
Preserves User Intent
The automatic switching algorithm prioritizes customer preferences by choosing the closest matching valid variant based on their selections.
Theme Compatible
Works seamlessly with all Odoo themes without requiring custom styling. The module integrates naturally with your existing website design.
How It Works
Product Page with Variant Selection
In this example, the customer has selected "Aluminium" for the Legs attribute. Notice how the "Black" option is crossed out, indicating it's not available with the current selections. This behavior is part of Odoo out of the box, using either the "Exclude for" setting or archived variant configurations.
Automatic Variant Switching in Action
When the customer clicks the "Black" color attribute, instead of showing a "This combination does not exist" error, the module automatically switches to the closest valid variant that includes Black. The algorithm favors keeping as many of the current selections as possible. In this case, the "Aluminium" option is automatically switched to "Steel" while Black is preserved.
Enhanced Shop Page Experience
Works with standard out-of-the-box Odoo product configurations. Use the "Exclude for" setting or archive variants to disable certain attribute combinations.
No more "This combination does not exist."
Limitations: Automatic switching works for all variant types, but cannot help when selecting an attribute value in the following circumstances:
- Attributes with variant creation set to "Never" (no_variant)
- Dynamic attributes where no variant has been created yet for the selected value (no existing variants to switch to)
- When no valid combination exists at all for your selection
Benefits
Reduced Cart Abandonment
Customers are less likely to leave when they don't encounter confusing error messages.
Improved User Experience
Smooth, intuitive variant selection similar to major eCommerce platforms.
Higher Conversion Rates
Making it easier for customers to find valid products increases sales.
Professional Appearance
Your store behaves like established eCommerce platforms customers trust.
No Configuration Required
Works automatically after installation with your existing product variants.
Safe & Reliable
Only affects interactive product pages, not orders or historical data.
Technical Details
Backend Controller
Intercepts variant combination requests and intelligently determines the closest valid combination
Frontend JavaScript
Automatically updates the user interface to reflect the valid combination selected by the backend
Intelligent Algorithm
Preserves as many of the customer's original selections as possible when finding a valid alternative
Seamless Integration
Works with Odoo's built-in exclusion styling to provide a smooth experience without requiring custom CSS
Installation & Compatibility
Installation Steps
- Download and install the module through the Odoo Apps interface
- The module activates automatically for all products with variants
- No configuration or setup required
- Compatible with all standard Odoo themes
Get Started Today
Install this module to provide your customers with a smoother, more professional product selection experience that matches the best eCommerce platforms.
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module