Page 1 of 1

GetFeaturedProducts sortExpression options

Posted: Mon Mar 30, 2020 11:58 am
by Christopher Kiraly
Can someone tell me what fields are returned with GetFeaturedProducts so I can determine what sort options I have, or else point me to the documentation that tells me about this function!

Thanks!

Re: GetFeaturedProducts sortExpression options

Posted: Tue Mar 31, 2020 12:07 am
by Naveed
Hi,

ProductDataSource.GetFeaturedProducts() returns a list of products. You can use any of the Product field for sorting.


Thanks,

Re: GetFeaturedProducts sortExpression options

Posted: Tue Mar 31, 2020 9:34 am
by Christopher Kiraly
Thanks - as a follow up question...

I don't see where you can set the OrderBy value in the Products table. I know using the sort field in the catagory section updates the OrderBy in CatalogNodes, but I don't see how you can set the order by for individual products. Where is this located, or how can one do this (other than directly modifying the database?)

Re: GetFeaturedProducts sortExpression options

Posted: Tue Mar 31, 2020 10:44 am
by Naveed
I don't see how you can set the order by for individual products.
Product OrderBy value is automatically recalculated based on category sort order. It is recalculated when you sort the categories.

Sorry there seems no option to set the the OrderBy for individual products, however you can batch edit product by exporting the products data and update the data and re-import.