Add custom pageSize parameter for category-next/loadCategoryProducts
#3713
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Short description and why it's useful
Add a custom page-size parameter to
category-next/loadCategoryProductsmethod to be able to use other initial- and next-page-limit on category product lists. For example if you wan't more or less than the default 50 items per page on initial load.I also added a config value for the
systemFilterNamesto expand them via configs.For example, this would be handy if you want to provide a select in list view which can change the items per page page when you don't want infinite-scrolling without changing any core-code.
Or if you like to load only 12 items per page initially or an amount which is dividable by 2 to don't have a single item on last line.
Which environment this relates to
Check your case. In case of any doubts please read about Release Cycle
developbranch and want to merge it back todevelopreleasebranch and want to merge it back toreleasehotfixormasterbranch and want to merge it back tohotfixUpgrade Notes and Changelog
IMPORTANT NOTICE - Remember to update
CHANGELOG.mdwith description of your changeContribution and currently important rules acceptance