Ecommerce: Color Swatches with Live Stock & Price
by Cerevantix Technologies https://cerevantix.com$ 54.74
Color swatches that show stock and price before the click.
Extend Odoo's native color swatches with live stock and price signals right on the swatch, so shoppers never pick a sold-out color or get surprised by cost.
Native website_sale swatches show color and nothing else. A shopper can select a color that is completely sold out and only find out after clicking, and a color that costs more shows no price hint until it is already chosen. Both gaps create dead-end selections and abandoned carts on exactly the products where color matters most.
This module decorates the native color swatch without touching its selection or image-swap behavior. A color whose every stock-limited variant is sold out gets marked right on the swatch; a color with a price difference shows its delta inline. Merchants control both behaviors, and the out-of-stock style, from Website > eCommerce settings.
This app speaks your language.
Tell us the language your team works in and we translate this module for you, free of charge — so everyone works in the language they know best.
Request my free translation →No hidden fees. No subscription.
What ships
Every capability below is implemented in the module.
Stock-aware color swatches
A color whose every stock-limited variant is sold out is marked directly on the swatch, so shoppers never land on a dead end.
Price-transparent swatches
Colors that cost more show their price delta, for example +$25.00, right on the swatch, before the shopper selects.
Three out-of-stock styles
Choose strikethrough with a label, a "Sold out" badge, or a dimmed/disabled swatch — whichever fits the storefront.
Per-website configuration
Toggle stock marking and price display independently, per website, from Website > eCommerce settings.
Add-only native integration
Inherits the native swatch template and decorates it in place; color selection and the product image swap keep working exactly as before.
Touch-friendly on mobile
Swatches keep a minimum tap size and wrap cleanly on phone screens, where most shoppers land first.
How it works
Install & configure
Enable stock marking and price display in Website > eCommerce settings, and pick your out-of-stock style.
Shopper opens a product
Native color swatches render exactly as before — no layout changes, no new page elements to learn.
Swatches speak for themselves
Sold-out colors show their marker and priced colors show their delta, both visible before any click.
Shopper decides with confidence
No dead-end selections and no price surprises — straight to add-to-cart.
See it in action
The swatch decorations on the storefront product page, and the merchant configuration in Website > eCommerce settings.
Ivory is sold out and shows the strikethrough marker; Forest and Crimson show their price deltas, +$15.00 and +$25.00, right on the swatch.
Turn stock marking and price display on or off independently, and choose the out-of-stock style: strikethrough, badge, or dimmed.
Frequently asked
Does this replace Odoo's native color swatches?
No. It decorates the swatches website_sale already renders — native selection, image-swap, and display types are untouched. This module only adds stock and price signals on top.
Does it add any new JavaScript?
No. Everything is server-rendered QWeb and Python compute; the existing native swatch-selection script keeps working exactly as before.
How is "out of stock" decided for a color?
A color is marked only when every stock-limited variant carrying that color has zero available quantity. Products that allow ordering when out of stock, or aren't stock-tracked, are never marked.
Can I turn off the price badge or change the out-of-stock style?
Yes. Go to Website > eCommerce settings and toggle stock marking and price display independently, and choose strikethrough, badge, or dimmed for out-of-stock swatches.
Get in Touch
Have questions or need customization? Every purchase includes 30 days of free support — we are here to help.
Visit Our Website
www.cerevantix.comExplore our apps, services, and portfolio.
Empowering growth through technology.
Stock-aware, price-transparent color swatches for Odoo eCommerce — configurable per website, no new JavaScript.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
eCommerce (website_sale)
• Invoicing (account) • Discuss (mail) • Inventory (stock) • Website (website) |
| Lines of code | 143 |
| Technical Name |
cerevantix_display_product_variant_by_color_on_webs |
| License | OPL-1 |
| Website | https://cerevantix.com |
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