From d9a391f1ccd34bf42c85fb34c6c0deb06bc20786 Mon Sep 17 00:00:00 2001 From: rahul shukla Date: Wed, 18 Mar 2020 16:15:33 +0530 Subject: [PATCH] Issue #2593 fixed --- .../views/products/list/layered-navigation.blade.php | 6 +++++- .../views/shop/products/list/layered-navigation.blade.php | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/Webkul/Shop/src/Resources/views/products/list/layered-navigation.blade.php b/packages/Webkul/Shop/src/Resources/views/products/list/layered-navigation.blade.php index f8327f68c..c0fc79a5c 100755 --- a/packages/Webkul/Shop/src/Resources/views/products/list/layered-navigation.blade.php +++ b/packages/Webkul/Shop/src/Resources/views/products/list/layered-navigation.blade.php @@ -161,6 +161,10 @@ props: ['index', 'attribute', 'appliedFilterValues'], data: function() { + let maxPrice = '{{ core()->convertPrice($productFlatRepository->getCategoryProductMaximumPrice($category)) }}'; + + maxPrice = (parseInt(maxPrice) !== 0) ? parseInt(maxPrice) : 500; + return { appliedFilters: [], @@ -171,7 +175,7 @@ 0, 0 ], - max: {{ core()->convertPrice($productFlatRepository->getCategoryProductMaximumPrice($category)) ?? 0 }}, + max: maxPrice, processStyle: { "backgroundColor": "#FF6472" }, diff --git a/packages/Webkul/Velocity/src/Resources/views/shop/products/list/layered-navigation.blade.php b/packages/Webkul/Velocity/src/Resources/views/shop/products/list/layered-navigation.blade.php index d73c3d012..15803bb90 100644 --- a/packages/Webkul/Velocity/src/Resources/views/shop/products/list/layered-navigation.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/shop/products/list/layered-navigation.blade.php @@ -183,7 +183,7 @@ data: function() { let maxPrice = '{{ core()->convertPrice($productFlatRepository->getCategoryProductMaximumPrice($category)) }}'; - maxPrice = (maxPrice !== '') ? parseInt(maxPrice) : 0; + maxPrice = (parseInt(maxPrice) !== 0) ? parseInt(maxPrice) : 500; return { active: false,