From 0e964e496c0d83ab20974da51f2d21ba2680043e Mon Sep 17 00:00:00 2001 From: Rohan Hapani Date: Fri, 20 Mar 2020 14:49:05 +0530 Subject: [PATCH 1/3] Solution : Advance search page allow minus price filter --- .../CatalogSearch/view/frontend/templates/advanced/form.phtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/CatalogSearch/view/frontend/templates/advanced/form.phtml b/app/code/Magento/CatalogSearch/view/frontend/templates/advanced/form.phtml index 3712f221233ee..26420705c7ffd 100644 --- a/app/code/Magento/CatalogSearch/view/frontend/templates/advanced/form.phtml +++ b/app/code/Magento/CatalogSearch/view/frontend/templates/advanced/form.phtml @@ -68,7 +68,7 @@ class="input-text" type="text" maxlength="escapeHtmlAttr($maxQueryLength) ?>" - data-validate="{number:true, 'less-than-equals-to':'#escapeHtmlAttr($_code) ?>_to'}" /> + data-validate="{number:true, 'validate-not-negative-number':true, 'less-than-equals-to':'#escapeHtmlAttr($_code) ?>_to'}" />
@@ -81,7 +81,7 @@ class="input-text" type="text" maxlength="escapeHtmlAttr($maxQueryLength) ?>" - data-validate="{number:true, 'greater-than-equals-to':'#escapeHtmlAttr($_code) ?>'}" /> + data-validate="{number:true, 'validate-not-negative-number':true, 'greater-than-equals-to':'#escapeHtmlAttr($_code) ?>'}" />