HTML formatting for order notes

Posted: December 31, 2017 at 7:08 PM Quote #198521
Hi,

I'm writing a plugin in version 4.0.
I'm adding a order note upon checkout. I want to use HTML formatting so the order note is displayed with line breaks.

When I look in the code. The Details view use
@Html.Raw(item.Note)

That's fine. But the model order note text is formatted with an extension method with a parameter
allowHtml == false
.
So the HTML is removed.
Why is this formatting added to the note?
Is there a way that I can add the line breaks from my plugin code, without having to alter core code?

Regards
Tomas
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:53 AM Quote #209520
I have this same issue. Would like to add a link in the order notes without changing 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