Hi all,
I've just started using version 2.40. I have to say I've never really used MVC much or Razor, but am working my way through it.
One quick question. I want to create a custom setting and then check against the value of it in the view. The view is the partial view _ProductVariantAddToCart.cshtml which is constructed using:
@{
var dataDictAddToCart = new ViewDataDictionary();
dataDictAddToCart.TemplateInfo.HtmlFieldPrefix = string.Format("addtocart_{0}", defaultProductVariant.Id);
@Html.Partial("_ProductVariantAddToCart", defaultProductVariant.AddToCart, dataDictPrice)
}
How do I go about using the Settings in v 2.40? I think im understanding that I need to use the settingsService, but im not sure where or how to construct it?
Can anyone give me any guidance?
Thanks
Al