Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,694
    Plugin Contributions
    123

    Default Re: Customer email text/format problems - $EMAIL_SALUTATION + $EMAIL_ORDER_MESSAGE_UP

    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  2. #12
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,690
    Plugin Contributions
    9

    Default Re: Customer email text/format problems - $EMAIL_SALUTATION + $EMAIL_ORDER_MESSAGE_UP

    the more i think about this, the less unsure i am about it.

    we could get into the whole structure of sending email.... which frankly is far too complex and to me in need of a refactor...

    the actual sending of the email gets done in the function zen_mail. this is where the PHPMailer object gets created. and yet this same function is also dealing with this html_msg array (now called block).

    and if we look at this section of code:

    https://github.com/zencart/zencart/b....php#L101-L109

    or this section of code:

    https://github.com/zencart/zencart/b....php#L581-L595

    there is a bunch of testing for isset of elements of the array.

    if ZC is to provide plugins the ability to use a template for sending a mail, should ZC not account for elements of the array not included in the message?

    i am not sure what the answer is, but if the zen_mail function is the only time ZC sends an email, i think there is far too much going on to process an array utilizing some template that has required elements, that if not provided, result in the email seen by ted.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  3. #13
    Join Date
    Nov 2015
    Location
    New Jersey USA
    Posts
    64
    Plugin Contributions
    0

    Default Re: Customer email text/format problems - $EMAIL_SALUTATION + $EMAIL_ORDER_MESSAGE_UP

    Adding the recommended code around line 242 of YOUR_ADMIN/edit_orders.php solved this issue for me My order status update emails now have "Dear" as salutation and no extra unwanted text. Thank you carlwhat.

  4. #14
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,690
    Plugin Contributions
    9

    Default Re: Customer email text/format problems - $EMAIL_SALUTATION + $EMAIL_ORDER_MESSAGE_UP

    Quote Originally Posted by Ted Grapler View Post
    Adding the recommended code around line 242 of YOUR_ADMIN/edit_orders.php solved this issue for me My order status update emails now have "Dear" as salutation and no extra unwanted text. Thank you carlwhat.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v139h All emails are suddenly sending in Text format, regardless of what customer's select
    By SethF in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 11 Jun 2013, 05:42 AM
  2. Customer default Email Format Pref HTML
    By solo_400 in forum General Questions
    Replies: 8
    Last Post: 12 Jan 2012, 02:10 PM
  3. Problems customising email text and templates
    By seasheps in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 24 Feb 2011, 01:02 AM
  4. Email issue HTML format for customer
    By arunkarthik in forum Customization from the Admin
    Replies: 0
    Last Post: 29 Jun 2010, 07:38 PM
  5. Where can I re-format for text email?
    By tonyinabox in forum General Questions
    Replies: 5
    Last Post: 28 Aug 2006, 09:08 AM

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