Just for anyone looking for a solution to this I will quickly summarize what we ended up to do:
Create a new view within your Viewset in the following folder: Views/Shared/_manufacturer.cshtml
Add the following code
@model Hotcakes.Modules.Core.Models.ProductPageViewModel
@functions{
private string DisplayName(){
var m = HccApp.ContactServices.Manufacturers.Find(Model.LocalProduct.ManufacturerId);
return m.DisplayName;
}
}
@Html.Raw(DisplayName())
Change _ProductDetails.cshtml and the new partial view wherever you want:
@Html.Partial("_manufacturer", Model)
This will render the manufacturer name.
Edited by user
2020-08-20T08:59:03Z
|
Reason: Not specified