gnikitsin wrote:@Html.Partial("_CustomerAttributes", Model.CustomerAttributes)
To use this you need to change the model in code
You can do this in the .cshtml
@using Nop.Core;
@using Nop.Services.Common;
@using Nop.Core.Infrastructure;
@using Nop.Core.Domain.Customers;
@{
var _genericAttributeService = EngineContext.Current.Resolve<IGenericAttributeService>();
var _workContext = EngineContext.Current.Resolve<IWorkContext>();
var firstname = _genericAttributeService.GetAttribute<string>(_workContext.CurrentCustomer, NopCustomerDefaults.FirstNameAttribute);
var lastname = _genericAttributeService.GetAttribute<string>(_workContext.CurrentCustomer, NopCustomerDefaults.LastNameAttribute);
}
<div>
Name=@firstname @lastname
</div>