Product Sort on Desktop vs Mobile

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
jonw2m
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 35
Joined: Thu Sep 15, 2011 9:00 pm

Product Sort on Desktop vs Mobile

Post by jonw2m » Mon Apr 29, 2013 11:55 am

Products are displayed in a different order in desktop vs mobile site - only for "Feature sorting". By price/name it shows OK high to low or low to high. Is there a way of making them consistent?

Thank you

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Product Sort on Desktop vs Mobile

Post by jmestep » Tue Apr 30, 2013 4:17 am

They use different methods to get products.
Mobile uses .LoadForCategory
ProductList.DataSource = ProductDataSource.LoadForCategory(_categoryId, false, true, SortResults.SelectedValue, _pageSize, (_hiddenPageIndex * _pageSize));

The categorygrid pages use one of these
Products only for current category and subcategories
IList<Product> products = ProductDataSource.AdvancedSearch(_keywords, this._categoryId, _manufacturerId, true, true, true, 0, 0, _pageSize, (_hiddenPageIndex * _pageSize), SortResults.SelectedValue);
ProductList.DataSource = products;

IList<Product> allNodes = ProductDataSource.LoadForCategory(this.CategoryId, false, _pageSize, (_HiddenPageIndex * _pageSize), SortResults.SelectedValue);
IList<Product> visibleNodes = allNodes.Where(node => node.Visibility.Equals(CatalogVisibility.Public)).ToList();
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

kwikstand
Commodore (COMO)
Commodore (COMO)
Posts: 410
Joined: Mon Feb 19, 2007 8:12 pm
Contact:

Re: Product Sort on Desktop vs Mobile

Post by kwikstand » Sat Aug 24, 2013 5:12 pm

So, how can this be edited? In my situation, mobile shows products sorted by "Featured", but none of these products are incuded in feature list. Instead, it seems to like to show my less than popular priducts first.

There must be a way to change this, isn't there?
Contractor's Solutions
www. contractors-solutions.net

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Product Sort on Desktop vs Mobile

Post by jmestep » Mon Aug 26, 2013 5:38 am

You can swap the code out, but you might have to change several places on the page. You could also take the featured sort out of the dropdown or move it. In Able 7, it would show only featured products, but in Gold it shows all products with the featured ones first.
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

kwikstand
Commodore (COMO)
Commodore (COMO)
Posts: 410
Joined: Mon Feb 19, 2007 8:12 pm
Contact:

Re: Product Sort on Desktop vs Mobile

Post by kwikstand » Mon Aug 26, 2013 8:29 am

One of the problems is, that the products it shows as featured, are NOT in fact featured. I don't know why it is showing them this way. This is only in the mobile pages. The main site works fine.
Contractor's Solutions
www. contractors-solutions.net

kwikstand
Commodore (COMO)
Commodore (COMO)
Posts: 410
Joined: Mon Feb 19, 2007 8:12 pm
Contact:

Re: Product Sort on Desktop vs Mobile

Post by kwikstand » Sun Sep 01, 2013 1:37 pm

I would like the mobile category page to sort like my regular category page, according to the order I place them in the admin.

Is this possible?
Contractor's Solutions
www. contractors-solutions.net

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

Re: Product Sort on Desktop vs Mobile

Post by mazhar » Thu Sep 05, 2013 4:59 am

Edit you Website/Mobile/Category.aspx page and locate following code

Code: Select all

<asp:ListItem Text="Featured" Value="IsFeatured ASC"></asp:ListItem>
and update it like

Code: Select all

<asp:ListItem Text="Featured" Value="IsFeatured DESC, OrderBy ASC, Name ASC"></asp:ListItem>
Hopefully this will correct the sort order for mobile category page.

kwikstand
Commodore (COMO)
Commodore (COMO)
Posts: 410
Joined: Mon Feb 19, 2007 8:12 pm
Contact:

Re: Product Sort on Desktop vs Mobile

Post by kwikstand » Thu Sep 05, 2013 6:30 am

Thanks Mazhar,

It helped a bit, but it is still not in the order I place them in administration. I don't know what "IsFeatured" means because there is no corealtion to the products I have checked as "featured".

What does "OrderBy ASC" mean, and what ither values can be used?

Thanks,

Scott
Contractor's Solutions
www. contractors-solutions.net

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

Re: Product Sort on Desktop vs Mobile

Post by mazhar » Fri Sep 06, 2013 1:44 am

IsFeatured can return true/false. If true it means product is marked as Featured product. OrderBy is what you are looking for, it helps admin define order for catalog items. It can have integer value and when you move items up/down within admin in backend codes are incrementing/decrementing the OrderBy value. The item at top within a category will have OrderBy = 0 while item at the bottom of category will have maximum value. This way "OrderBy ASC" means list exactly how they appear in admin.

kwikstand
Commodore (COMO)
Commodore (COMO)
Posts: 410
Joined: Mon Feb 19, 2007 8:12 pm
Contact:

Re: Product Sort on Desktop vs Mobile

Post by kwikstand » Fri Sep 06, 2013 8:24 am

Thanks for the info. I am learning.

I suppose "ASC" means something like "Admin Sort C(I don't know)" But it is still not sorting as per the admin sort order. It seems to be sorting alphabetically, after the featured product first. Are you sure "ASC" doesn't mean "Aphabetical Sort C...."?

There is an exception though, on this page: http://www.contractors-solutions.net/mo ... me+ASC&p=2

The "Blaklader X1600 Work Pants" is between "Water-pruf Breathable Duck Insulated Bib Overalls" and "Walls® Waterproof Breathable Rain Pants 58105". I can't seem to male sense of that one.
Contractor's Solutions
www. contractors-solutions.net

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

Re: Product Sort on Desktop vs Mobile

Post by mazhar » Fri Sep 06, 2013 9:35 am

OrderBy ASC means sort in ascending order where item with lower OrderBy value should appear first. Give a try and update it like

Code: Select all

<asp:ListItem Text="Featured" Value="OrderBy ASC"></asp:ListItem>

kwikstand
Commodore (COMO)
Commodore (COMO)
Posts: 410
Joined: Mon Feb 19, 2007 8:12 pm
Contact:

Re: Product Sort on Desktop vs Mobile

Post by kwikstand » Fri Sep 06, 2013 9:49 am

Sorry,that doesn't work either. Now, the sort seems to be all jumbled up. I have no idea of the logic. It is not price, alphabetic or fearured. Take a look:

http://www.contractors-solutions.net/mo ... pants.aspx
Contractor's Solutions
www. contractors-solutions.net

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

Re: Product Sort on Desktop vs Mobile

Post by mazhar » Mon Sep 09, 2013 2:34 am

I am not sure if you have other modifcations to your category page. The default product listing in mobile store only list products from opened category which means it will not load items from sub categories. This means if we only sort by OrderBy it should work. So what i have sugggested above

Code: Select all

<asp:ListItem Text="  " Value="OrderBy ASC"></asp:ListItem>
if you make the above list item the first one in list means the default one. The items should appear in the order admin defiend for them in admin panel. If you have modified the listing and its listing from multiple categories then its not possiable to retain the order admin provided.

Post Reply