Sorting Products and Search results
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Sorting Products and Search results

 
Post new topic   Reply to topic    Windows Server Forum Index -> Commerce Server
Author Message
Martin
Guest





Posted: Thu Oct 20, 2005 8:51 am    Post subject: Sorting Products and Search results Reply with quote

I'm using the retail solution site, I'm struggling to get the search
results or the product list results to sort properly.

The search results I can just about work out, although the
PropertiesToSort on list doesn't seem to allow DESC to be added to any
of the terms. But the method does have a true/false to turn it on for
the main sort term.

Is there a way to sort the product list in any direction? The
oCategory.Products method doesn't seem to allow the configuration of a
sort direction, and agin won't allow DESC/ ASC in the sort term.

Is there anyway round this...? If not I will have to re-write the
entire searching/browsing code, and don't really fancy doing this.
Currently I have my search results sorted by stock, with in stock at
top. However the browse pages show no stock items first - stoopid.

Thanks in advance

M
Back to top
Sudha Raghavan [MSFT]
Guest





Posted: Thu Oct 20, 2005 8:51 pm    Post subject: RE: Sorting Products and Search results Reply with quote

You could try using [PropertyName]DESC in the SortProperties field.

Thanks
Sudha
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Commerce Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB