If I use:
Code: Select all
ProductDataSource.LoadForCategory(true, _Category.Id, false, true, "Name ASC", 500, 0)
Code: Select all
ProductDataSource.LoadForCategory(true, _Category.Id, false, true, "Name ASC", 500, 0)
I have products in more than one category so "OrderBy ASC" dont work.nadeem wrote:You need to replace "Name ASC" with "OrderBy ASC" to display products in admin sort order. Note that admin sort order may not work correctly if you have products in more than one categories.
Also please note that in deep item display, items are listed from all sub-categories recursively. The sort order within each category is respected, but if a product is in more than one category, which sort order to take into consideration? In the merchant admin you have defined sort order by category. There is no sort order by the entire catalog. So when your product is in more than one categories and you are listing products from multiple categories, you are likely to see some conflict.
I'm using a custom page with a repeater using:nadeem wrote:This will not work for Deep Item Display category pages. It should work for other category display pages. Which display page are you using?
Code: Select all
ProductDataSource.LoadForCategory(true, _Category.Id, false, true, "Name ASC", 500, 0)
Odettes wrote:I'm using a custom page with a repeater using:nadeem wrote:This will not work for Deep Item Display category pages. It should work for other category display pages. Which display page are you using?My treestructure looks like this:Code: Select all
ProductDataSource.LoadForCategory(true, _Category.Id, false, true, "Name ASC", 500, 0)
-Folder-A
-Folder-B
Item-1
Item-2
-Folder-C
Item-3
Item-4
Item-1
Item-2
Item-3
Item-4
If I user "SortOrder ASC" Folder-B and Folder-C arange as I see it in the admin interface.
But items in Folder-A seems to sort a bit random (folderB and folderC are subfolders of folderA)