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

Ref. 2304 Fix used variable for products count in category #2326

Merged
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
2 changes: 1 addition & 1 deletion docs/guide/components/category-page.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ No props
- `categoryName` - category name.
- `categoryId` - category ID.
- `breadcrumbs` - breadcrumbs for the current category from the Vuex store.
- `productsCounter` - how many products are in the category.
- `productsTotal` - how many products are in the category.
- `lazyLoadProductsOnscroll` - allows lazy-loading more products on scroll, by default it's true

## Methods
Expand Down
2 changes: 1 addition & 1 deletion src/themes/default/pages/Category.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</div>
<sidebar class="mobile-filters-body" :filters="filters.available"/>
</div>
<p class="col-xs-12 hidden-md m0 px20 cl-secondary">{{ productsCounter }} items</p>
<p class="col-xs-12 hidden-md m0 px20 cl-secondary">{{ productsTotal }} {{ $t('items') }}</p>
<div class="col-md-9 pt20 px10 border-box products-list">
<div v-if="isCategoryEmpty" class="hidden-xs">
<h4 data-testid="noProductsInfo">{{ $t('No products found!') }}</h4>
Expand Down