I've been at this for 4 hours now and cannot figure out how to convert my code (from NopCommerce 3.6) to the new 4.X of using Components.
I have the following call on my Product Details View:
@Html.Action("HassleFreeProduct", "Product", new { productId = Model.Id })
In my controller I have an Action Method that returns HTML to the view where it's rendered.:
public ActionResult HassleFreeProduct(int productId)
{
var model = new model();
return View(model);
}
How do I do this on NopCommerce 4.0?
So far I've figured out I have to convert my ActioMethod to a Component but what exactly does that mean? I cannot find any examples in the code.
Can someone provide an example on how to do this in NopCommerce 4.0 +