Hello! Is it possible to add html to order comments? How can I do that? I try to put in HTML code but it doesn't work. In particular I'm looking to add links in order comments.
Thanks!
Thanks!
How are you planning to add those links? Like, do you want users to put a link in the comment box?MrFerriero wrote: ↑Sat Oct 27, 2018 12:00 amHello! Is it possible to add html to order comments? How can I do that? I try to put in HTML code but it doesn't work. In particular I'm looking to add links in order comments.
Thanks!
A2 Hosting features: Shared Turbo Boost, Managed Warp 1, Unmanaged Hyper 1, and Warp 2 Turbo
Nobody here understands what does "doesn't work" mean. Always describe the issue in detail.
Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com
Sorry, what I mean by "Doesn't Work" is that I put in an HTML code on an order comment on my admin side and on the customer side you see the html code not what I wanted.
So, I put <a href="link">LINK</a> and I wanted my customers to see on their dashboard the link not the html code.
Does that help? Sorry
So, I put <a href="link">LINK</a> and I wanted my customers to see on their dashboard the link not the html code.
Does that help? Sorry
Comments added to orders in the backend are plain text only.
If you want to have them as HTML, you have to convert the message like:
And send the message (mail) as html.
If you want to have them as HTML, you have to convert the message like:
Code: Select all
$comment = html_entity_decode( nl2br( $comment ) , ENT_QUOTES, 'UTF-8' );
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Where do you make this change? What module? I'm on OpenCart version 3.0.3.8OSWorX wrote: ↑Sun Feb 03, 2019 7:42 pmComments added to orders in the backend are plain text only.
If you want to have them as HTML, you have to convert the message like:And send the message (mail) as html.Code: Select all
$comment = html_entity_decode( nl2br( $comment ) , ENT_QUOTES, 'UTF-8' );
Probably the controller for the customer account page.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Guru Member
Who is online
Users browsing this forum: Amazon [Bot], Google [Bot] and 435 guests