Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2016
    Location
    Lawton, IA
    Posts
    5
    Plugin Contributions
    0

    Default 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">940550369930009394 0084</a>

    instead of just the clickable link.

    How do I get it to display like the emails?

  2. #2
    Join Date
    Jul 2012
    Posts
    15,170
    Plugin Contributions
    17

    Default 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...
    Upgraded to Zen Cart V1.5.3 from V1.5.1 from V1.5.0 from V1.3.9h

 

 

Similar Threads

  1. v154 Order Status History and Comments are missing
    By roberttimmons in forum Managing Customers and Orders
    Replies: 0
    Last Post: 28 Feb 2019, 11:46 PM
  2. Order Status History & Comments
    By dmagic in forum Basic Configuration
    Replies: 3
    Last Post: 21 May 2015, 01:06 PM
  3. Order Status History & Comments
    By dmagic in forum Customization from the Admin
    Replies: 1
    Last Post: 21 May 2015, 10:06 AM
  4. Status History & Comments (Customer & Admin side) Duplicate entries?
    By MaximumOverload in forum General Questions
    Replies: 3
    Last Post: 4 Apr 2011, 05:55 PM
  5. Replies: 4
    Last Post: 21 Jun 2010, 04:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR