Variant From Price
Show the lowest variant price with a "From" label on shop cards for products whose variants cost different amounts, and the price range on the product page.
| Odoo | 16.0, 17.0, 18.0, 19.0, 20.0 |
| Editions | Community, Enterprise |
| Works with | eCommerce (website_sale) |
| Licence | OPL-1, 23 EUR |
| Tests | 13 automated, run on every version |
| Module | website_ |
The situation
A T-shirt costs 19.00 in size S and 23.00 in XL. The shop card shows the price of the template, so a visitor sees 19.00 and finds 23.00 only after opening the product. Hoodies with a +6.00 Navy colour behave the same way: the card shows one number and the page shows another.
The shop card now reads "From 19.00" when the variants of a product are priced differently. The lowest price comes from the visitor's pricelist, so discounts, price extras, fiscal position and the website's tax display are applied. Products that cost the same in every variant keep the standard card.
What it adds
Getting started
Open Apps, clear the Apps filter, search for Variant From Price and click Activate. It needs eCommerce (website_sale).
Apps › website_variant_from_price › Activate
Open the website settings, find the Show "From" Price block in the Shop - Products section and set the label, the sold-out option and the product page range. To switch it off for one category, tick Hide "From" Price on the eCommerce category.
Website › Configuration › Settings › Shop - Products
Nothing to do day to day. Change a price extra on a variant or a pricelist rule and the shop card follows on the next page load.
Fine print
Log
Can the From price follow my custom pricelist rules?
Tell us which pricelist rules you use and we will check how the lowest price is computed.
Email odoo.expert.111@gmail.com
Also by Awins
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