Random Featured Products

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Random Featured Products

Post by AbleMods » Wed Sep 10, 2014 11:28 am

We're having problems with ProductDataSource.RandomFeaturedProducts(categoryId,..). It's not including any featured products found in sub-categories of the specified categoryId. It only returns featured products in the specified category.

This is different than how it worked before - in Able 7.x it would return any featured products in the specified category as well as featured products in any sub categories of the specified category.

Am I missing something?
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

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

Re: Random Featured Products

Post by rmaweb » Tue Nov 11, 2014 7:51 am

I just looked at the source code for the featured products and like you saw, if the category id is set, it is only getting the products that have a category id equal to the one you specified. It would be nice if the code could be updated to have the categories fetch like in the AdvancedSearch function where the category id is the parent category to pull from and the subcategories are all pulled. I'll see if I can make something like that happen.
Ryan A.
Scott's Bait and Tackle
http://store.scottsbt.com
Work In Progress
Able Gold R10
Bootstrap 3.3

Post Reply