I neet to add URL as a link in Order Note

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
I neet add an URL in one Order note for the user can access their payment receipt, i try with



Order.OrderNotes.Add(new OrderNote
            {
                Note = string.Format("You can download and print your card to pay in store <a href=\"{0}\">HERE</a>",URL),
                DisplayToCustomer = true,
                CreatedOnUtc = DateTime.UtcNow
            });



But this did not work.
5 years ago
This is because orderNoteModels note is formatted by Nop.Core.Html.HtmlHelper.HtmlHelper.FormatText(text, false, true, false, false, false, false); which uses parameter allowHtml=false.

It appears this can be changed only by altering the source code.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.