Can someone please tell me how I can get the product image to show inside the Downloadable Products Page :(
I know the model needs changing, and I have changed it to the following:
namespace Nop.Web.Models.Customer
{
public class CustomerDownloadableProductsModel : BaseNopModel
{
public CustomerDownloadableProductsModel()
{
Items = new List<DownloadableProductsModel>();
}
public IList<DownloadableProductsModel> Items { get; set; }
public CustomerNavigationModel NavigationModel { get; set; }
#region Nested classes
public class DownloadableProductsModel : BaseNopModel
{
public DownloadableProductsModel()
{
DefaultPictureModel = new PictureModel();
}
public Guid OrderProductVariantGuid { get; set; }
public int OrderId { get; set; }
public int ProductId { get; set; }
public string ProductName { get; set; }
public string ProductSeName { get; set; }
public PictureModel DefaultPictureModel { get; set; }
public string ProductAttributes { get; set; }
public int DownloadId { get; set; }
public int LicenseId { get; set; }
public DateTime CreatedOn { get; set; }
}
#endregion
}
public class UserAgreementModel : BaseNopModel
{
public Guid OrderProductVariantGuid { get; set; }
public string UserAgreementText { get; set; }
}
}
As you can see, I have added the PictureModel in there, hoping that I would be able to extract the product image for each product, but in Razor view, it returns blank, instead of the product image URL ! What am I doing wrong ?
Would greatly appreciate any help.
Thank You.