This commit is contained in:
rahul shukla 2020-03-18 16:15:33 +05:30
parent 7b5930f8bc
commit d9a391f1cc
2 changed files with 6 additions and 2 deletions

View File

@ -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"
},

View File

@ -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,