When browsing the eCommerce part of the website, customers should be able to filter shop products based on base sale price. Desired behavior after PR is merged: The filter slider can be enabled through the customize menu and it only filters using the product's base price (for performance reason) and takes into account currency conversions, not pricelists and discounts. It uses a custom-built library for the range input with 2 cursors (min. price and max. price). The slider is hidden when all products shown on the current page (category, etc.) have the same price (or there is only one product). A more advanced version of this implementation would enable the filtering to take more factors into account. task-2603014 closes odoo/odoo#74575 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com> Co-authored-by: fja-odoo <fja@odoo.com> Co-authored-by: Kamen Zhekov <kzh@odoo.com> Co-authored-by: Romain Derie <rde@odoo.com>
22 lines
1.1 KiB
Plaintext
22 lines
1.1 KiB
Plaintext
The MIT License (MIT)
|
|
|
|
Copyright (c) 2016 Lea Verou
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
in the Software without restriction, including without limitation the rights
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice shall 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.
|