Label not showing in the UI

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hi guys,

I added a new field in Products page.

I followed the link below:

http://docs.nopcommerce.com/pages/viewpage.action?pageId=1442499

But it seems that the label is not showing properly.

It only displays:
Admin.Catalog.Products.Fields.ExpiryDateTime instead of Expiry Date


Localization entry:
 <LocaleResource Name="Admin.Catalog.Products.Fields.ExpiryDateTime.Hint">
    <Value>The expiry date of the product in Coordinated Universal Time (UTC).</Value>
  </LocaleResource>


Any help would be appreciated.


Regards,
Steve
6 years ago
Hi
Please send your code here
What is your nopcommerce version?
6 years ago
Hi Asdo,

Thank you for looking into this.

I am using nopCommerce version 4.10.


Here is the code snippet:

  defaultResources.nopres.xml
  
 <LocaleResource Name="Admin.Catalog.Products.Fields.ExpiryDateTime">
    <Value>Expiry Date</Value>
  </LocaleResource>
  <LocaleResource Name="Admin.Catalog.Products.Fields.ExpiryDateTime.Hint">
    <Value>The expiry date of the product in Coordinated Universal Time (UTC).</Value>
  </LocaleResource>



ProductModel.cs

  //ExpiryDate
        [NopResourceDisplayName("Admin.Catalog.Products.Fields.ExpiryDateTime")]
        [UIHint("Date")]
        public DateTime ExpiryDateTimeUtc { get; set; }




_CreateOrUpdateInfo.cshtml


<div class="form-group">
                        <div class="col-md-3">
                            <nop-label asp-for="ExpiryDateTimeUtc" />
                        </div>
                        <div class="col-md-9">
                            <nop-editor asp-for="ExpiryDateTimeUtc" />
                            <span asp-validation-for="ExpiryDateTimeUtc"></span>
                        </div>
                    </div>



Regards,
Steve
6 years ago
Thanks guys

I found the answer

https://www.nopcommerce.com/boards/t/50827/nopresourcedisplayname-issues.aspx
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.