HTML formatting for order notes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
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
5 years ago
I have this same issue. Would like to add a link in the order notes without changing the source code.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.