Featured Products Grid Not Displaying Properly

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
rmaweb
Commander (CMDR)
Commander (CMDR)
Posts: 118
Joined: Fri Sep 10, 2010 9:41 am

Featured Products Grid Not Displaying Properly

Post by rmaweb » Sat Jun 04, 2011 7:09 am

Hello Everyone,

We are trying to make use of the featured products grid on our Home Page, and it works great at displaying four random featured products at a time. However, when I try to add a SelectedCategory="#" attribute to it, it starts displaying multiple listings of the same product. If I load the page, it will display one product 2,3, or 4 times, so that that product is all that is displaying on the page. Then if I reload the page, the same thing happens with another product.

I have tried to look at the ascx.cs file in the conlib folder, but it looks like unless I spend $1000 for the source code, I won't be able to get this fixed, since it looks like the problem is in the ProductDataSource.GetRandomFeaturedProducts(_SelectedCategory, true,IncludeOutOfStockItems, this.Size) function. Am I missing something, and does anybody else have a way to solve this issue without spending a lot to fix it?
Ryan A.
Scott's Bait and Tackle
http://store.scottsbt.com
Work In Progress
Able Gold R10
Bootstrap 3.3

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

Re: Featured Products Grid Not Displaying Properly

Post by jmestep » Sat Jun 04, 2011 12:07 pm

You could try category featured products conlib with a category id of 0- I don't remember if that works for sure or not.
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

rmaweb
Commander (CMDR)
Commander (CMDR)
Posts: 118
Joined: Fri Sep 10, 2010 9:41 am

Re: Featured Products Grid Not Displaying Properly

Post by rmaweb » Sat Jun 04, 2011 12:45 pm

Hello Judy,

The default setting is set to 0, which displays the featured products of all of the categories. And that is what works fine. The thing is, I have 5 "top level" categories with their own homepages. And I would like to have each homepage have a featured products display which shows the featured products that are under each top level category.
Ryan A.
Scott's Bait and Tackle
http://store.scottsbt.com
Work In Progress
Able Gold R10
Bootstrap 3.3

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

Re: Featured Products Grid Not Displaying Properly

Post by jmestep » Sat Jun 04, 2011 1:01 pm

There are two featured product grids.
FeaturedCategoryItems uses a different datasource
ProductCollection featured = ProductDataSource.GetFeaturedProducts(_CategoryId, true, IncludeOutOfStockItems, _MaxItems, 0);

_CategoryId is
int _CategoryId = PageHelper.GetCategoryId();
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

Post Reply