AbleCommerce Forums
»
AbleCommerce
»
General Questions
»
Change the default number to 48 instead of 12
Rank: Member
Groups: Authorized User, Developers, Registered Joined: 12/19/2018(UTC) Posts: 11
|
Show: 12 Displaying 13 - 21 of 21 results
Mike How do we change the default number of items shown on a category from 12 to 48? Thanks
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
Hi Macoy, You need to change the default page size value from the controller code. We have a default value for pageSize action parameter. The default widget for Category listing is "Category Product Grid Multilevel" and you can find the code in CategoryController.cs line#480. Just change pageSize value from 12 to 48. int pageSize = 12This will require a recompile in Visual Studio after you make the change, but the only file that will need to be updated is the /bin/AbleCommerce.dll file to the live website. Thanks Edited by user Wednesday, July 24, 2019 2:15:21 AM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Developers
Joined: 11/7/2018(UTC) Posts: 303
Thanks: 21 times Was thanked: 5 time(s) in 5 post(s)
|
Is this something that can be set up as a parameter for the widget in future versions (like you do ShowAddToCart in some places)? A lot of merchants want it to be different and it seems hard that they have to know how to change a controller and know Visuals Studio/use command line enough to compile a site just to make a small change like that.
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
Quote:Is this something that can be set up as a parameter for the widget in future versions Yes, we can set this up as a widget parameter. I have logged a new task to discuss this feature. Thanks
|
|
|
|
AbleCommerce Forums
»
AbleCommerce
»
General Questions
»
Change the default number to 48 instead of 12
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close