I would like to add a decimal setting to the Catalog Settings named CustomerEnterPricePercentageSurcharge in nopcommerce 2.65. I followed the instructions on How to Add New Setting Value in Customer settings thread.
However, after following the 3 steps (listed below and modified for Catalog Settings) mentioned in the aforementioned thread, when login into the admin section and save the catalog settings the value is always 0.0000. It seems that it isn't saving (or loading) the "catalogsettings.customerenterpricepercentagesurcharge" settings value. Could someone help me clarify what the value isn't being saved?
Updating Nop.Admin/Models/Setting/CatalogSettingsModel.cs with
[NopResourceDisplayName("Admin.Configuration.Settings.Catalog.CustomerEnterPricePercentageSurcharge")] public decimal CustomerEnterPricePercentageSurcharge { get; set; }
Updating Nop.Admin/Views/Setting/Catalog.cshtml with
<tr> <td class="adminTitle"> @Html.NopLabelFor(model => model.CustomerEnterPricePercentageSurcharge): </td> <td class="adminData"> @Html.EditorFor(model => model.CustomerEnterPricePercentageSurcharge) @Html.ValidationMessageFor(model => model.CustomerEnterPricePercentageSurcharge) </td> </tr>
Adding:
"catalogsettings.customerenterpricepercentagesurcharge" under (configuration ->setting->AllSetting) and updating the
Your help is very much appreciated.