• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

ttillman
#1 Posted : Wednesday, October 14, 2009 11:18:47 AM(UTC)
ttillman

Rank: Member

Joined: 4/10/2009(UTC)
Posts: 120
Location: Mechanicsville, VA

Thanks: 3 times
Was thanked: 1 time(s) in 1 post(s)
I miss this feature. Would like to have it back. Seems easy enough to throw back into a template. Anyone?


Tim
Aaron
#2 Posted : Wednesday, October 14, 2009 11:42:07 AM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,393
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
Yes, it's easy enough. The only downside is that if you have a large category, you could potentially have some performance problems, timeouts, etc. We don't have a template that we can upload, but here is what you need to change:

There are several lines of code in various If/Else statements that retrieve the products. They all look like this:
Code:

displayProducts = LocalCategory.FindAllProductsByCriteria(Me.ProductSearchCriteria, Me.SortOrder, WebAppSettings.DisableInventory, False, Pager1.CurrentRow, Pager1.ItemsPerPage, rowCount)


To display all of the products on a page you need to replace the Pager1.ItemsPerPage with an arbitrarily high number and replace rowCount with a value of 1. So, the example code below will display 1,000 products.
Code:

displayProducts = LocalCategory.FindAllProductsByCriteria(Me.ProductSearchCriteria, Me.SortOrder, WebAppSettings.DisableInventory, False, Pager1.CurrentRow, 1000, 1)


Note that you will still need to wire up the method by which you allow uses to change from a paged mode to a view all mode. If you use the code above the template will always display 1,000 products on the page.
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
ttillman
#3 Posted : Friday, October 16, 2009 2:10:46 PM(UTC)
ttillman

Rank: Member

Joined: 4/10/2009(UTC)
Posts: 120
Location: Mechanicsville, VA

Thanks: 3 times
Was thanked: 1 time(s) in 1 post(s)
Hmmmm..... I guess I should have been able to figure that on my own. Aaron, thanks as always, you have given me the start I needed to get going.


Tim
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.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012