Page 1 of 1

Featured Products Grid Not Displaying Properly

Posted: Sat Jun 04, 2011 7:09 am
by rmaweb
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?

Re: Featured Products Grid Not Displaying Properly

Posted: Sat Jun 04, 2011 12:07 pm
by jmestep
You could try category featured products conlib with a category id of 0- I don't remember if that works for sure or not.

Re: Featured Products Grid Not Displaying Properly

Posted: Sat Jun 04, 2011 12:45 pm
by rmaweb
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.

Re: Featured Products Grid Not Displaying Properly

Posted: Sat Jun 04, 2011 1:01 pm
by jmestep
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();