Skip to content

Commit

Permalink
feat(search): ES-98 Product filters configured to not display product…
Browse files Browse the repository at this point in the history
… count show a count in more modal
  • Loading branch information
bc-sumi committed Jan 24, 2020
1 parent fa3c716 commit e01f3d3
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 e01f3d3

Please sign in to comment.