From 9287f5342c49cefec34cc8030398a35ccc5ac710 Mon Sep 17 00:00:00 2001 From: Senthil Krishnasamy Date: Fri, 9 Apr 2021 00:14:24 -0700 Subject: [PATCH] fix(search): ES-2138 fixed count showing issue for category facet --- CHANGELOG.md | 1 + templates/components/faceted-search/facets/hierarchy.html | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 53dba26839..32425b7443 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Draft - Fixed unnecessary horizontal scroll on swatch options on PDP. [#2023](https://github.com/bigcommerce/cornerstone/pull/2023) +- Always showing product counts for Category facet in the faceted search results page. [#2035](https://github.com/bigcommerce/cornerstone/pull/2035) ## 5.3.0 (03-25-2021) - Remove AddThis for social sharing, replace with provider sharing links. [#1997](https://github.com/bigcommerce/cornerstone/pull/1997) diff --git a/templates/components/faceted-search/facets/hierarchy.html b/templates/components/faceted-search/facets/hierarchy.html index f9d0e35f30..86024f8fc8 100644 --- a/templates/components/faceted-search/facets/hierarchy.html +++ b/templates/components/faceted-search/facets/hierarchy.html @@ -14,9 +14,7 @@ data-faceted-search-facet> {{{sanitize title}}} {{#if ../show_product_counts}} - {{#if count}} - ({{count}}) - {{/if}} + ({{count}}) {{/if}} {{#if children}}