Skip to content
Closed
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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]
add perPage load value to category config - @ngongoll (#3630)

## [1.10.3] - 2019.09.18

### Fixed
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -824,10 +824,10 @@ Vue Storefront is a Community effort brought to You by our great Core Team and s
</a>
</td>
<td align="center" valign="middle">
<a href="">
<a href="https://kiwicommerce.co.uk/">
<img
src=""
alt=""
src="https://divante.com/partners/Vue-Storefront/KiwiCommerce%20Logo.png"
alt="KiwiCommerce"
height="40"
>
</a>
Expand Down
3 changes: 2 additions & 1 deletion config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@
"excludeFields": [ "sgn" ],
"categoriesRootCategorylId": 2,
"categoriesDynamicPrefetchLevel": 2,
"categoriesDynamicPrefetch": true
"categoriesDynamicPrefetch": true,
"perPage": 30
},
"attribute": {
"includeFields": [ "attribute_code", "id", "entity_type_id", "options", "default_value", "is_user_defined", "frontend_label", "attribute_id", "default_frontend_label", "is_visible_on_front", "is_visible", "is_comparable", "tier_prices", "frontend_input" ]
Expand Down
2 changes: 1 addition & 1 deletion core/modules/catalog/store/category/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ const actions: ActionTree<CategoryState, RootState> = {
/**
* Filter category products
*/
products (context, { populateAggregations = false, filters = [], searchProductQuery, current = 0, perPage = 50, sort = '', includeFields = null, excludeFields = null, configuration = null, append = false, skipCache = false, cacheOnly = false }) {
products (context, { populateAggregations = false, filters = [], searchProductQuery, current = 0, perPage = config.entities.category.perPage, sort = '', includeFields = null, excludeFields = null, configuration = null, append = false, skipCache = false, cacheOnly = false }) {
context.dispatch('setSearchOptions', {
populateAggregations,
filters,
Expand Down
4 changes: 2 additions & 2 deletions core/pages/Category.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default {
data () {
return {
pagination: {
perPage: 50,
perPage: config.entities.category.perPage,
current: 0,
enabled: false
},
Expand Down Expand Up @@ -68,7 +68,7 @@ export default {
store: store,
route: route,
current: 0,
perPage: 50,
perPage: config.entities.category.perPage,
sort,
filters: config.products.defaultFilters,
includeFields: config.entities.optimize && isServer ? config.entities.productList.includeFields : null,
Expand Down