I neet to add URL as a link in Order Note

Posted: June 05, 2017 at 5:16 PM Quote #188647
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.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: July 29, 2018 at 4:59 AM Quote #209521
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 post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.
eCommerce CONFERENCE 2019
Learn more