diff --git a/src/module-elasticsuite-catalog/Model/Layer/Filter/DecimalFilterTrait.php b/src/module-elasticsuite-catalog/Model/Layer/Filter/DecimalFilterTrait.php index 58da4cb96..2df3c8128 100644 --- a/src/module-elasticsuite-catalog/Model/Layer/Filter/DecimalFilterTrait.php +++ b/src/module-elasticsuite-catalog/Model/Layer/Filter/DecimalFilterTrait.php @@ -52,7 +52,7 @@ public function apply(\Magento\Framework\App\RequestInterface $request) $this->getLayer()->getProductCollection()->addFieldToFilter( $this->getAttributeModel()->getAttributeCode(), - array_filter(['gte' => $fromValue, 'lt' => $toValue]) + array_filter(['gte' => $fromValue, 'lte' => $toValue]) ); $this->getLayer()->getState()->addFilter( diff --git a/src/module-elasticsuite-catalog/view/frontend/web/js/range-slider-widget.js b/src/module-elasticsuite-catalog/view/frontend/web/js/range-slider-widget.js index 706367254..ca661e757 100644 --- a/src/module-elasticsuite-catalog/view/frontend/web/js/range-slider-widget.js +++ b/src/module-elasticsuite-catalog/view/frontend/web/js/range-slider-widget.js @@ -110,7 +110,7 @@ define(["jquery", 'Magento_Catalog/js/price-utils', 'mage/template', "jquery/ui" _getItemCount : function() { var from = this.from, to = this.to, intervals = this.intervals; - var count = intervals.map(function(item) {return item.value >= from && item.value < to ? item.count : 0;}) + var count = intervals.map(function(item) {return item.value >= from && item.value <= to ? item.count : 0;}) .reduce(function(a,b) {return a + b;}); return count; },