Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2011
    Plugin Contributions

    Default [Done v1.6.0] email confirmation gets truncated on the < symbol in product names

    It happens in the email confirmation that you receive once a customer orders products.
    i have products with description like
    Advantage Kitten <4kg 6 packs

    the the symbol '<' triggers a truncation in the email so i have to log into the admin section to print off the order to fulfill.
    this was identified in another version, is there a fix for this or should i go ahead and remove all the < symbols.

    here is the older thread about this

    any help will be appreciated.


  2. #2
    Join Date
    Oct 2011
    Plugin Contributions

    Default Re: email confirmation gets truncated on the < symbol

    i use the latest version of zen cart, 1.5.1

  3. #3
    Join Date
    Sep 2003
    Plugin Contributions

    Default Re: email confirmation gets truncated on the < symbol

    The quick fix is to use a space, like this:
    Advantage Kitten < 4kg 6 packs

    instead of:
    Advantage Kitten <4kg 6 packs

    and that will fix it for now ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Jan 2004
    Blog Entries
    Plugin Contributions

    Default Re: email confirmation gets truncated on the < symbol

    Two options:

    a) use the space, like Ajeh mentioned. That's the simplest.

    b) or use the following code change, which will be included in v1.6.0:
          if ($email_text == '') {
            $email_text = str_replace(array('<br>','<br />'), "<br />\n", $block['EMAIL_MESSAGE_HTML']);
            $email_text = str_replace('</p>', "</p>\n", $email_text);
            $email_text = ($module != 'xml_record') ? htmlspecialchars(stripslashes(strip_tags($email_text)), ENT_COMPAT, CHARSET, TRUE) : $email_text;
          } else {
            $email_text = ($module != 'xml_record') ? strip_tags($email_text) : $email_text;
          if ($email_text == '') {
            $email_text = str_replace(array('<br>','<br />'), "<br />\n", $block['EMAIL_MESSAGE_HTML']);
            $email_text = str_replace('</p>', "</p>\n", $email_text);
             $email_text = ($module != 'xml_record') ?  zen_output_string_protected(stripslashes(strip_tags($email_text))) :  $email_text;
          } else if ($module != 'xml_record') {
            $email_text = preg_replace("/<([^[:alpha:]])/", '@lt@\\1', $email_text);
            $email_text = strip_tags($email_text);
            $email_text = str_replace('@lt@', '<', $email_text);

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.



Similar Threads

  1. Product Names Being Truncated to 15 Characters
    By myfootsmells in forum Basic Configuration
    Replies: 6
    Last Post: 27 Jan 2009, 08:46 PM
  2. Replies: 9
    Last Post: 5 Sep 2008, 02:53 AM
  3. Manufacturers Names Truncated
    By LissaE in forum Basic Configuration
    Replies: 2
    Last Post: 3 Sep 2008, 03:59 PM
  4. Currency symbol on Order confirmation email!
    By hp600 in forum General Questions
    Replies: 11
    Last Post: 14 Nov 2007, 12:02 PM
  5. Product names Garbled in Order Confirmation email
    By Peace Freak in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 24 Aug 2006, 06:57 PM


Posting Permissions

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