How do I get the values of the custom product fields within razor templates?
I have created a custom product field("ProductCustomStartDate" of type DateTime), that i need to display on a product list page.
In my template i would expect something like this, but this doesn't seem to work.
foreach (LoopItem i in GetLoop("Products")){ foreach (LoopItem cf in GetLoop("CustomFields")){ <text>@cf.GetValue("CustomField.ProductCustomStartDate")</text> } }
Can anybody please help?