logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
Macoy  
#1 Posted : Tuesday, July 23, 2019 1:13:43 PM(UTC)
Macoy

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

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

shari  
#2 Posted : Wednesday, July 24, 2019 2:01:29 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 703

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 = 12

This 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

judy at Web2Market  
#3 Posted : Wednesday, July 24, 2019 5:43:53 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 289

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.
shari  
#4 Posted : Wednesday, July 24, 2019 9:55:01 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 703

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
Users browsing this topic
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.