Whats New Category not showing up on Mobile site

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
VIPER7
Captain (CAPT)
Captain (CAPT)
Posts: 247
Joined: Fri Apr 15, 2005 2:49 pm

Whats New Category not showing up on Mobile site

Post by VIPER7 » Thu Jan 14, 2016 8:40 pm

Hello All,

Would anyone be able to shed any light on why my What's New (New Arrivals) section isn't showing up on the mobile version of my AC Gold site? Here's my URL. Feel free to check. It's the first category on our site.

http://www.drumcityguitarland.com

When you click on this category on the mobile site, it says "No products are currently available in this category". However, it displays just fine in my PC based browser. I've tried with both Iphone and Android mobile environments. Thanks in advance for any help!

Dennis

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

Re: Whats New Category not showing up on Mobile site

Post by mazhar » Fri Jan 15, 2016 1:14 am

Category page under /mobile module doesn't load products recursively from sub categories. On main website you seems to be using Deep Display which lists products not only from category itself but from any of its sub categories.

For mobile website we choose to list the minimal data considering the limitations for small devices. You may alter the code to make it recursive or recursive for just one category. If you edit /mobile/category.aspx.cs file and locate following code

Code: Select all

ProductList.DataSource = ProductDataSource.LoadForCategory(true, _categoryId, false, true, SortResults.SelectedValue, _pageSize, (_hiddenPageIndex * _pageSize));
then update it like

Code: Select all

ProductList.DataSource = ProductDataSource.LoadForCategory(true, _categoryId, _categoryId == 990, true, SortResults.SelectedValue, _pageSize, (_hiddenPageIndex * _pageSize));
This will now try to list products from any of sub categories under "New Arrivals" category. For any other category it will load just from category itself just like before this change.

VIPER7
Captain (CAPT)
Captain (CAPT)
Posts: 247
Joined: Fri Apr 15, 2005 2:49 pm

Re: Whats New Category not showing up on Mobile site

Post by VIPER7 » Fri Jan 15, 2016 9:02 am

Hello mazhar,

Thank you for your reply. This code change did not affect anything on the mobile site after I implemented it. Do you have any other suggestions or ideas? Thank you very much!

Post Reply