Sylius: Changing the “Max Per Page” Option of Paginator not working on SyliusShopBundle

Created on 11 Jan 2017  ·  2Comments  ·  Source: Sylius/Sylius

I am a newbee for sylius.
According to official Docs, I changed taxons list number by setting paginate.

sylius_shop_product_index:
path: /taxons/{slug}
methods: [GET]
defaults:
_controller: sylius.controller.product:indexAction
_sylius:
paginate: 30
template: "@SyliusShop/Product/index.html.twig"
grid: sylius_shop_product
requirements:
slug: .+

But products always display default number 10, So I don't understand.
Thus is my debug info on front-end.

ResourceGridView {#2720 ▼
-metadata: Metadata {#1800 ▶}
-requestConfiguration: RequestConfiguration {#2717 ▼
-request: Request {#9 ▶}
-metadata: Metadata {#1800 ▶}
-parameters: Parameters {#2718 ▼
#parameters: array:10 [▼
"paginate" => 30
"limit" => null
"allowed_paginate" => array:3 [▶]
"default_page_size" => 10
"sortable" => false
"sorting" => null
"filterable" => false
"criteria" => null
"template" => "@SyliusShop/Product/index.html.twig"
"grid" => "sylius_shop_product"
]
}
}
-data: Pagerfanta {#2759 ▼
-adapter: DoctrineORMAdapter {#2760 ▶}
-allowOutOfRangePages: false
-normalizeOutOfRangePages: true
-maxPerPage: 10
-currentPage: 1
-nbResults: 11
-currentPageResults: null
}
-definition: Grid {#2663 ▶}
-parameters: Parameters {#2719 ▶}
}

Who can help me explain this , thanks very much.

Potential Bug

Most helpful comment

I pulled latest code from github, find the problem resolved already. Thanks Sylius team.

Jerry

All 2 comments

i have the same problem too

I pulled latest code from github, find the problem resolved already. Thanks Sylius team.

Jerry

Was this page helpful?
0 / 5 - 0 ratings