Sort order for products

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Sort order for products

Post by jmestep » Sun Apr 19, 2009 8:44 am

No, what he is saying is that the grids will work if you use a display page that shows only the products in that particular category. The page you are using shows products in a category and it's subcategories. Since each subcategory has it's own sorting rules they wouldn't apply to the display page you are using.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
ryanstowasser
Lieutenant Commander (LCDR)
Lieutenant Commander (LCDR)
Posts: 90
Joined: Tue Oct 30, 2007 4:28 pm
Contact:

Re: Sort order for products

Post by ryanstowasser » Wed Apr 22, 2009 9:44 am

This link is an example of how you can write a custom sorting method

viewtopic.php?f=44&t=5736&p=23258&hilit ... ort#p23258

If you need to sort based on the catalog node categoryid then the orderby value you can define that in the Compare function.

User avatar
NC Software
AbleCommerce Partner
AbleCommerce Partner
Posts: 4620
Joined: Mon Sep 13, 2004 6:06 pm
Contact:

Re: Sort order for products

Post by NC Software » Tue Jun 16, 2009 7:55 am

mazhar wrote:Well currently the AbleCommerce 7 doesn't list the products as per admin adjusted order. It was a bug which is fixed for 7.2 version.
http://bugs.ablecommerce.com/show_bug.cgi?id=7453
If you use the following workaround

Code: Select all

<asp:ListItem Text="< Select Sort Order >" Value="" Selected="True"></asp:ListItem>
Then it will take care of the order in which products was actually added to catalog.
I'm using 7.0.3 and this is not the case (wasn't fixed it seems), had to handle this manually per the many posts here.
Neal Culiner
NC Software, Inc.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Sort order for products

Post by mazhar » Tue Jun 16, 2009 8:00 am

Try this trick on those pages showing a single category items for example CategoryList and CategoryDetails pages. We can't maintain merchant order for those pages that display data from multiple categories.

User avatar
NC Software
AbleCommerce Partner
AbleCommerce Partner
Posts: 4620
Joined: Mon Sep 13, 2004 6:06 pm
Contact:

Re: Sort order for products

Post by NC Software » Tue Jun 16, 2009 8:19 am

Simple pages such as CategoryGrid didn't have this fix (the Default no Value sort value) and in my opinion should.
Neal Culiner
NC Software, Inc.

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Re: Sort order for products

Post by Logan Rhodehamel » Fri Jun 19, 2009 11:13 am

musthavebag wrote:One of the reasons why we bought this software was to be able to sort products easily.

We use a grid, not list, format and basically what you are saying is that it cant work with a grid format?!! :shock:
Yes, you can. We offer two different category grid display pages. One of them is a "deep" item display where the category displays all products in the category and all subcategories. This type of display is our default and with it, categories work like a kind of filter. You start out seeing all the products then you can click into categories to narrow in.

We also offer a category display page that uses a grid format but only shows items from the category. This is the display page you want. You can change from the merchant admin area, under the website menu.

The code block that is passing around here, you can actually make it work most reliably by doing this:

Code: Select all

<asp:ListItem Text="< Select Sort Order >" Value="OrderBy ASC" Selected="True"></asp:ListItem>
I think that will work on any of the display pages. The column name "OrderBy" is the sort that is adjusted by the admin.
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

User avatar
Logan Rhodehamel
Developer
Developer
Posts: 4116
Joined: Wed Dec 10, 2003 5:26 pm

Re: Sort order for products

Post by Logan Rhodehamel » Fri Jun 19, 2009 11:15 am

NC Software wrote:I'm using 7.0.3 and this is not the case (wasn't fixed it seems), had to handle this manually per the many posts here.
I am not sure what bug was fixed. The issue of ordering as addressed here is (finally) registered into our bug database and has been corrected. The fix is essentially to add the code I listed above to the sorting box. It will be an official part of our next release.
Cheers,
Logan
Image.com

If I do not respond to an unsolicited private message, it's not because I'm ignoring you. It's because the answer to your question is valuable to others. Try the new topic button.

Post Reply