How to add Hint icon next to field in Plugin

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 лет назад
Hello,

I'm using nopCommerce 3.80 source code.

I'd like to know how to put the Hint icon(?) between the field name and the textbox on a config screen in a Plugin.

I tried this:

<div class="col-md-3">
    @Html.NopLabelFor(model => model.Username)
</div>
<div class="col-md-9">
    @Html.NopEditorFor(model => model.Username)
    @Html.ValidationMessageFor(model => model.Username)
</div>


But I don't see the Hint icon when I run it.

Thanks,
Tony
7 лет назад
Have you created locale string resources in your Install method, ...

            //locales
            this.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.Url", "URL");
            this.AddOrUpdatePluginLocaleResource("Plugins.Shipping.UPS.Fields.Url.Hint", "Specify UPS URL.");

and wired them up in the model :

        [NopResourceDisplayName("Plugins.Shipping.UPS.Fields.Url")]
        public string Url { get; set; }


(examples above are from UPS plugin)
7 лет назад
Thanks for your help.

Yes, those changes made it work.

Thanks,
Tony
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.