Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(bctheme): BCTHEME-57 Cornerstone - No '0 Products Matched' messag… #1720

Merged
merged 2 commits into from
Jul 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 19 additions & 15 deletions templates/components/category/product-listing.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
{{> components/products/filter sort=pagination.category.sort}}
{{#if category.products}}
{{> components/products/filter sort=pagination.category.sort}}

<form action="{{urls.compare}}" method='POST' {{#if settings.data_tag_enabled}} data-list-name="Category: {{category.name}}" {{/if}} data-product-compare>
{{#if theme_settings.product_list_display_mode '===' 'grid'}}
{{#if settings.data_tag_enabled}}
{{> components/products/grid products=category.products show_compare=category.show_compare theme_settings=theme_settings event="list" }}
<form action="{{urls.compare}}" method='POST' {{#if settings.data_tag_enabled}} data-list-name="Category: {{category.name}}" {{/if}} data-product-compare>
{{#if theme_settings.product_list_display_mode '===' 'grid'}}
{{#if settings.data_tag_enabled}}
{{> components/products/grid products=category.products show_compare=category.show_compare theme_settings=theme_settings event="list" }}
{{else}}
{{> components/products/grid products=category.products show_compare=category.show_compare theme_settings=theme_settings}}
{{/if}}
{{else}}
{{> components/products/grid products=category.products show_compare=category.show_compare theme_settings=theme_settings}}
{{#if settings.data_tag_enabled}}
{{> components/products/list products=category.products show_compare=category.show_compare theme_settings=theme_settings event="list" }}
{{else}}
{{> components/products/list products=category.products show_compare=category.show_compare theme_settings=theme_settings}}
{{/if}}
{{/if}}
{{else}}
{{#if settings.data_tag_enabled}}
{{> components/products/list products=category.products show_compare=category.show_compare theme_settings=theme_settings event="list" }}
{{else}}
{{> components/products/list products=category.products show_compare=category.show_compare theme_settings=theme_settings}}
{{/if}}
{{/if}}
</form>
</form>

{{> components/common/paginator pagination.category}}
{{> components/common/paginator pagination.category}}
{{else}}
<p>{{lang 'categories.no_products'}}</p>
{{/if}}
6 changes: 1 addition & 5 deletions templates/pages/category.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,7 @@ <h1 class="page-heading">{{category.name}}</h1>
{{/if}}

<main class="page-content" id="product-listing-container">
{{#if category.products}}
{{> components/category/product-listing}}
{{else}}
<p>{{lang 'categories.no_products'}}</p>
{{/if}}
{{> components/category/product-listing}}
{{{region name="category_below_content"}}}
</main>
</div>
Expand Down