Product Sort on Desktop vs Mobile
Product Sort on Desktop vs Mobile
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
Thank you
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Product Sort on Desktop vs Mobile
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();
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
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
Re: Product Sort on Desktop vs Mobile
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?
There must be a way to change this, isn't there?
Contractor's Solutions
www. contractors-solutions.net
www. contractors-solutions.net
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Product Sort on Desktop vs Mobile
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
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
Re: Product Sort on Desktop vs Mobile
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
www. contractors-solutions.net
Re: Product Sort on Desktop vs Mobile
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?
Is this possible?
Contractor's Solutions
www. contractors-solutions.net
www. contractors-solutions.net
Re: Product Sort on Desktop vs Mobile
Edit you Website/Mobile/Category.aspx page and locate following code
and update it like
Hopefully this will correct the sort order for mobile category page.
Code: Select all
<asp:ListItem Text="Featured" Value="IsFeatured ASC"></asp:ListItem>
Code: Select all
<asp:ListItem Text="Featured" Value="IsFeatured DESC, OrderBy ASC, Name ASC"></asp:ListItem>
Re: Product Sort on Desktop vs Mobile
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
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
www. contractors-solutions.net
Re: Product Sort on Desktop vs Mobile
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.
Re: Product Sort on Desktop vs Mobile
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.
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
www. contractors-solutions.net
Re: Product Sort on Desktop vs Mobile
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>
Re: Product Sort on Desktop vs Mobile
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
http://www.contractors-solutions.net/mo ... pants.aspx
Contractor's Solutions
www. contractors-solutions.net
www. contractors-solutions.net
Re: Product Sort on Desktop vs Mobile
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
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.
Code: Select all
<asp:ListItem Text=" " Value="OrderBy ASC"></asp:ListItem>