Here's what I did which is still not working.
First, I added a list to the model:
public System.Collections.Generic.List<Nop.Core.Domain.Catalog.Product> ProductList { get; set; }
Then I add items to that list in the controller:
foreach (var item in _orderService.GetOrderById(nopOrderId).OrderItems)
{
ThisOrderItems.Add(item.Product);
}
var model = new JDECheckoutCompletedModel
{
// Other stuff...
ProductList = ThisOrderItems
};
And then in the view:
foreach (var thisProduct in Model.ProductList)
{
var url = Url.RouteUrl("Product", new { SeName = thisProduct.GetSeName() });
}
And here I still receive the error that "Nop.Core.Domain.Catalog.Product does not contain a definition for GetSeName".
I know I must be making a rookie mistake, right?