If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Managing Customers and Orders / Order Status Comments / Customer Account History don't match

Order Status Comments / Customer Account History don't match

Started by wcook on 2 Dec 2019, 10:42 PM · Views: 8,742

Results 1 to 2 of 2
2 Dec 2019, 10:42 PM
#1
wcook avatar

wcook

New Zenner

Join Date:
Apr 2016
Location:
Lawton, IA
Posts:
6
Plugin Contributions:
0

Order Status Comments / Customer Account History don't match

When I update an order in Admin from processing to shipped, in the comments I include a clickable tracking link which the customer receives just fine by email but when they log in and look at the account history the comments show all the html code:

USPS Tracking # <a href="https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=9405503699300093940084">9405503699300093940084</a>

instead of just the clickable link.

How do I get it to display like the emails?

3 Dec 2019, 12:28 AM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Order Status Comments / Customer Account History don't match

This is a result of sanitization on display of the information.

Specifically in: includes/templates/YOUR_TEMPLATE/templates/tpl_account_history_info_default.php

At or around line 114, the comments are put through zen_output_string_protected which turns such html into viewed content instead of a clickable link. An alternate method of providing that information may be to provide the link path independent of an html tag to be copied and pasted. At the moment I'm short on alternate methods where the desired security is maintained but the information is still made available, although for some reason I'm also thinking that there is a touch of admin sanitization occurring... but I also think I'm wrong about that. Brain is fried at the moment, sorry.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...