nopcommerce 2.65에서 CustomerEnterPricePercentageSurcharge라는 카탈로그 설정에 소수점 설정을 추가하고 싶습니다. 나는 How to Add New Setting Value in Customer settings 스레드의 지침을 따랐습니다.카탈로그 설정에서 새 설정 값을 추가하는 방법
그러나 위의 스레드에서 언급 한 3 단계 (카탈로그 설정에 대해 수정 됨)를 따른 후에 관리자 섹션에 로그인하고 카탈로그 설정을 저장할 때 값은 항상 0.0000입니다. "catalogsettings.customerenterpricepercentagesurcharge"설정 값을 저장하거나로드하지 않는 것 같습니다. 누군가가 가치가 저장되지 않고 있음을 명확히하도록 도와 줄 수 있습니까?
<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>
가 추가로 Nop.Admin/조회/설정/Catalog.cshtml 업데이트
[NopResourceDisplayName("Admin.Configuration.Settings.Catalog.CustomerEnterPricePercentageSurcharge")]
public decimal CustomerEnterPricePercentageSurcharge { get; set; }
와
업데이트 Nop.Admin/모델/설정/CatalogSettingsModel.cs :
"catalogsettings.customerenterpricepercentagesurcharge" under (configuration ->setting->AllSetting) and updating the
귀하의 도움은 대단히 감사하겠습니다.
도와 주셔서 감사합니다 카를로스
Nop.Core.Domain.Catalog.CatalogSettings :
그리고 그것을 사용하는, 단지 새로운 필드를 추가 . 당신의 제안은 완벽하게 작동했습니다. – maxdmvp