Skip to content

Commit

Permalink
Merge pull request #1622 from bc-sumi/ES-98
Browse files Browse the repository at this point in the history
feat(search): ES-98 Product filters configured to not display product count show a count when you use the "More" modal
  • Loading branch information
bc-williamkwon authored Jan 24, 2020
2 parents fa3c716 + e01f3d3 commit 989d553
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 12 additions & 2 deletions templates/components/faceted-search/show-more-facets.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,22 @@ <h1 class="facet-quick-heading">
{{#each facets}}
{{#if facet '===' ../all_facets}}
{{#each items}}
<li class="navList-item"><a
<li class="navList-item">
<a
href="{{url}}"
class="navList-action {{#if selected }} is-active {{/if}}"
rel="nofollow"
data-id="{{ id }}"
data-faceted-search-facet>{{title}} ({{count}})</a></li>
data-faceted-search-facet
>
{{title}}
{{#if ../show_product_counts}}
{{#if count}}
<span>({{count}})</span>
{{/if}}
{{/if}}
</a>
</li>
{{/each}}
{{/if}}
{{/each}}
Expand Down

0 comments on commit 989d553

Please sign in to comment.