Hi,
there is a way to set products in offer on homepage?
Thanks
Guido
[ChildActionOnly]
public ActionResult HomepageCategoryProducts(int? productThumbPictureSize)
{
int categoryId = 0;
var resource = _localizationService.GetLocaleStringResourceByName("Homepage.Category0.Id"); //put the category id in the resource string
int.TryParse(resource != null ? resource.ResourceValue : "", out categoryId);
if (categoryId==0)
return Content("");
var products = HomePageCategoryWiseProduct(_categoryService.GetAllCategoriesIdByParentCategoryId(categoryId));
if (!products.Any())
return Content("");
//prepare model
var model = PrepareProductOverviewModels(products, true, true, productThumbPictureSize).ToList();
return PartialView(model);
}