From f9e70cebe811fc25bf7b3650059cf97f9cd044dc Mon Sep 17 00:00:00 2001 From: bookernath Date: Sat, 18 Feb 2017 17:55:58 -0800 Subject: [PATCH] STENCIL-2457 - fix incorrect suggestion warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Don’t suggest that nothing was found when things are found. --- CHANGELOG.md | 1 + templates/pages/search.html | 16 +++++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b0d0405efb..62b955c05e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Add a larger view of a swatch image when option is hovered over on the product page [#923](https://github.com/bigcommerce/stencil/pull/923) - Fixes an issue with file upload button not properly displaying in IE [#925](https://github.com/bigcommerce/stencil/pull/925) - Make sure product review email links automatically pop the review form [#928](https://github.com/bigcommerce/stencil/pull/928) +- Fixes an issue where search results would incorrectly state there were no results when there were results visible [#934](https://github.com/bigcommerce/stencil/pull/934) ## 1.5.2 (2017-02-14) - Added a setting to theme editor schema to show/hide the homepage carousel [#909](https://github.com/bigcommerce/stencil/pull/909) diff --git a/templates/pages/search.html b/templates/pages/search.html index 308e8a3a4a..eb09351750 100644 --- a/templates/pages/search.html +++ b/templates/pages/search.html @@ -73,13 +73,15 @@ {{lang 'forms.search.refine'}} -
-

- {{lang 'forms.search.your_search_for'}} - "{{forms.search.query}}" - {{lang 'forms.search.no_match'}} -

-
+ {{#if result_count '===' 0}} +
+

+ {{lang 'forms.search.your_search_for'}} + "{{forms.search.query}}" + {{lang 'forms.search.no_match'}} +

+
+ {{/if}} {{/if}} {{#if category_results.length}}