Zen Cart Logo
Forums / General Questions / Broke Html order confirmation emails - only showing code

Broke Html order confirmation emails - only showing code

Views: 2,680

Results 1 to 20 of 21
21 Nov 2014, 6:16 PM
#1
gfdesigns avatar

gfdesigns

New Zenner

Join Date:
May 2009
Location:
WA
Posts:
65
Plugin Contributions:
0

Broke Html order confirmation emails - only showing code

Some how in my quest to change the background color of my html order confirmation emails I broke them. I only changed the color code and the header.jpg to logo.jpg and now the order confirmation emails are only spitting out code.
I have replaced the file email/email_template_checkout.html with the unedited Original and it is still not working.
I'm at a loss as to what I should do any help would be greatly appreciated.

Attachment 14714

21 Nov 2014, 6:53 PM
#2
gfdesigns avatar

gfdesigns

New Zenner

Join Date:
May 2009
Location:
WA
Posts:
65
Plugin Contributions:
0

Re: Broke Html order confirmation emails - only showing code

Is anyone available to help me out on this one? I've hit the wall and I'm not sure what to do next.

22 Nov 2014, 1:20 PM
#3
gfdesigns avatar

gfdesigns

New Zenner

Join Date:
May 2009
Location:
WA
Posts:
65
Plugin Contributions:
0

Re: Broke Html order confirmation emails - only showing code

Next Day, I still need help with this.

If this helps this is what the email looked like in my inbox

Attachment 14717

22 Nov 2014, 1:25 PM
#4
gfdesigns avatar

gfdesigns

New Zenner

Join Date:
May 2009
Location:
WA
Posts:
65
Plugin Contributions:
0

Re: Broke Html order confirmation emails - only showing code

Some how in my quest to change the background color of my html order confirmation emails I broke them. I only changed the color code and the header.jpg to logo.jpg and now the order confirmation emails are only spitting out code.
I have replaced the file email/email_template_checkout.html with the unedited original and it is still not working.

I'm at a loss as to what I should do any help would be greatly appreciated.

Attachment 14718

Attachment 14719

22 Nov 2014, 3:48 PM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Broke Html order confirmation emails - only showing code

gfdesigns:

I have replaced the file email/email_template_checkout.html with the unedited Original and it is still not working.

This is the part that's depriving you of replies. If that's true, and the original file was actually uploaded, then some other file must be corrupted. Are all the other HTML emails working properly?

p.s. That's a product line I haven't seen here before. Nice job on the site.

22 Nov 2014, 6:14 PM
#6
gfdesigns avatar

gfdesigns

New Zenner

Join Date:
May 2009
Location:
WA
Posts:
65
Plugin Contributions:
0

Re: Broke Html order confirmation emails - only showing code

That is what I was expecting. I'm not sure which other file to look it if it's not email/email_template_checkout.html , I looked at the code on a few other email related pages (no changes were made) but I also replaced all of those as well with the original files from my computer just in case.

AH HA! I just discovered the Welcome email also is spitting out code along with the Order Confirmation email.

And thanks for the compliment on my site. :D

22 Nov 2014, 6:27 PM
#7
gfdesigns avatar

gfdesigns

New Zenner

Join Date:
May 2009
Location:
WA
Posts:
65
Plugin Contributions:
0

Re: Broke Html order confirmation emails - only showing code

Also my "Order Update" emails are showing up fine in html

So working fine is :
Order Update
Newsletter

Not working:
Welcome
Order confirmation
Contact

22 Nov 2014, 8:57 PM
#8
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Broke Html order confirmation emails - only showing code

gfdesigns:

Also my "Order Update" emails are showing up fine in html

Not working:
Welcome
Order confirmation
Contact

Have you edited the files for all those emails?

22 Nov 2014, 9:18 PM
#9
gfdesigns avatar

gfdesigns

New Zenner

Join Date:
May 2009
Location:
WA
Posts:
65
Plugin Contributions:
0

Re: Broke Html order confirmation emails - only showing code

No I did not touch them at all.

22 Nov 2014, 9:23 PM
#10
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Broke Html order confirmation emails - only showing code

Please post the contents of that email file here as code or text rather than a screenshot, so I can paste it into my test site's file and possibly reproduce the problem.

22 Nov 2014, 9:53 PM
#11
gfdesigns avatar

gfdesigns

New Zenner

Join Date:
May 2009
Location:
WA
Posts:
65
Plugin Contributions:
0

Re: Broke Html order confirmation emails - only showing code

stevesh:

Please post the contents of that email file here as code or text rather than a screenshot, so I can paste it into my test site's file and possibly reproduce the problem.

Here is the email:

$EMAIL_SUBJECT
html head meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" / base href="http://www.gothfox.com/" / style type="text/css" body {background-color:#ffffff; color:#000000; font-family:Verdana, Arial, Helvetica, sans-serif; text-align:center;} a:link {color:#0066cc;} a:hover {background-color:#eeeecc; color:#0066cc;} a:visited {color:#0066cc;} .holder {background-color:#f9f9f9; border:1px solid #9a9a9a; font-size:9px; text-align:left; width:550px;} .header {font-size:10px; padding:0px; width:550px;} .content {font-size:10px; padding:5px; width:550px;} .footer {border-top:1px solid #9a9a9a; font-size:9px; text-align:center; width:550px;} .extra-info {background-color:#cccc99; border:1px dashed #9a9a9a; font-size:10px; margin-top:10px; padding:5px; width:550px;} .content-line {padding:5px; font-size:10px;} .content-line-title {font-weight:bold; font-size:11px; padding-top:3px;} .order-detail-area {background-color:#CCCC99; border:1px #9a9a9a; width:542px; padding:2px; font-size:10px; } .product-details {font-size:10px;} .product-details-num {font-size:10px; font-weight:bold;} .order-totals-text {font-size:10px; font-weight:bold;} .order-totals-num {font-size:10px; } .comments {background-color:#FF6699; border:1px #9a9a9a; width:542px; padding:2px; font-size:10px; } .address-block {background-color:#E4E8F3; border:1px solid #9a9a9a; margin-top:3px;} .address {font-size:10px;} .payment-detail, .payment-footer {font-size:10px;} .extra-info {background-color:#cccc99; border:1px solid #9a9a9a; font-size:10px; margin-top:10px; padding:5px; width:550px;} .extra-info-bold {font-weight:bold;} .disclaimer {background-color:#f9f9f9; border:1px solid #cccccc; font-size:10px; margin-top:10px; padding:5px; width:550px;} .disclaimer1 {color:#666666; padding:5px;} .disclaimer1 a:link {color:#666666;} .disclaimer1 a:visited {color:#666666;} .disclaimer2 {color:#666666; padding:5px;} .copyright {border-bottom:0px solid #9a9a9a; padding:5px;} /style /head body div class="holder" !-- Header Section -- div class="header" img src="email/header.jpg" alt="logo" / /div !-- Content Section -- div class="content" div class="content-line" TransID: 93Y38719WK644613L_br /_ br / Order Confirmation br /br / Thandiwe Gibson,br / Thanks for shopping with us today!br / The following are the details of your order.br /br / Order Number: 2653_br / Date Ordered: Friday 21 November, 2014_br / a href="https://www.gothfox.com/index.php?main_page=account_history_info&order_id=2653"Click here for a Detailed Invoice/a /div div class="content-line"strong_Products/strong/div div class="order-detail-area"table class="product-details" border="0" width="100%" cellspacing="0" cellpadding="2"tr td class="product-details" align="right" valign="top" width="30"1 x/td td class="product-details" valign="top"Faux Deer Antlers - Standard nobr__small__em /em/small/nobr/td td class="product-details-num" valign="top" align="right"$20.00/td__/tr_ tr td class="product-details" align="right" valign="top" width="30"1 x/td td class="product-details" valign="top"Ram Horns - Black and Silver nobr__small__em br / Glitter Option Yes_br / Ram Horn Base Fur White/em__/small__/nobr__/td_ td class="product-details-num" valign="top" align="right"$40.00_/td__/tr_ tr td class="product-details" align="right" valign="top" width="30"1 x/td td class="product-details" valign="top"Spike Roe Deer Antlers nobr__small__em /em/small_/nobr__/td_ td class="product-details-num" valign="top" align="right"$15.00_/td__/tr_ /table_/div_ div class="order-detail-area"_table border="0" width="100%" cellspacing="0" cellpadding="2" tr__td class="order-totals-text" align="right" width="100%" /td td class="order-totals-num" align="right" nowrap="nowrap"---------/td_ /tr tr__td class="order-totals-text" align="right" width="100%"Sub-Total:/td td class="order-totals-num" align="right" nowrap="nowrap"$75.00_/td_ /tr tr__td class="order-totals-text" align="right" width="100%"United States Postal Service (Priority Mail™):/td td class="order-totals-num" align="right" nowrap="nowrap"$6.60_/td_ /tr tr__td class="order-totals-text" align="right" width="100%"Total:/td td class="order-totals-num" align="right" nowrap="nowrap"$81.60_/td_ /tr /table_/div_ div class="comments"__/div div class="content-line"strong_Address Information/strong/div_ div class="address-block" table border="0" width="100%" cellspacing="0" cellpadding="2" tr td valign="top" width="50%" table border="0" width="100%" cellspacing="0" cellpadding="2" tr td class="content-line-title"strong_Delivery Address/strong/td_ /tr tr td class="address"Thandiwe Gibson_br /3830 NE 33rd Ave_br /Portland, OR 97212_br /United States/td /tr tr td class="content-line-title"strong_Shipping Method/strong/td /tr tr td class="content-line"United States Postal Service (Priority Mail™)/td /tr /table /td td valign="top" width="50%" table border="0" width="100%" cellspacing="0" cellpadding="2" tr td class="content-line-title"Billing Address/td /tr tr td class="address"Andrea T Curtis-Gibson_br /210 E McLoughlinn Blvd_br /Suite 201_br /Vancouver, WA 98663_br /United States/td /tr tr td class="content-line-title"strong_Payment Method/strong/td /tr tr td class="payment-detail"Credit Card/td /tr tr td class="payment-footer"Visa XX8653 /td /tr /table /td /tr /table /div /div !-- Footer Section -- div class="footer" div class="copyright"Copyright (c) 2014 a href="http://www.gothfox.com/index.php?main_page=index&zenid=105fedc38ac2139ac1aa14ecc8dcb4e0" target="blank"Gothfox Designs/a. Powered by a href="http://www.zen-cart.com" target="blank"Zen Cart/a/div /div /div div class="disclaimer" div class="disclaimer1"This email address was given to us by you or by one of our customers. If you feel that you have received this email in error, please send an email to a href="mailto:[email protected]"[email protected] /a /div div class="disclaimer2"This email is sent in accordance with the US CAN-SPAM Law in effect 01/01/2004. Removal requests can be sent to this address and will be honored and respected./div /div table class="extra-info"__tr__td class="extra-info-bold" colspan="2"__strong_Office Use Only:/strong/td/tr__tr__td class="extra-info-bold"__strong_From:/strong/td__td/td/tr__tr__td class="extra-info-bold"__strong_Email:/strong__/td__td__/td__/tr__tr__td class="extra-info-bold"strong_Login Name:_/strong/td__td_Thandiwe Gibson_/td__/tr__tr__td class="extra-info-bold"strong_Login Email:_/strong/[email protected]_/td__/tr__tr__td class="extra-info-bold"strong_Telephone:_/strong/td__td_503 467 6172_/td__/tr__tr__td class="extra-info-bold"strong_IP Address:_/strong/td__td_70.96.40.193 - 70.96.40.193_/td__/tr__tr__td class="extra-info-bold"strong_Host Address:_/strong/td__td_70.96.40.193_/td__/tr__tr__td class="extra-info-bold"strong_Date and Time:_/strong/td__td_Fri Nov 21 2014 0:49:41 EST_/td__/tr__/table_ /body /html
Copyright (c) 2014 Zen Cart. Powered by Zen Cart
This email address was given to us by you or by one of our customers. If you feel that you have received this email in error, please send an email to [email protected]
This e-mail is sent in accordance with the US CAN-SPAM Law in effect 01/01/2004. Removal requests can be sent to this address and will be honored and respected.

22 Nov 2014, 9:56 PM
#12
gfdesigns avatar

gfdesigns

New Zenner

Join Date:
May 2009
Location:
WA
Posts:
65
Plugin Contributions:
0

Re: Broke Html order confirmation emails - only showing code

Here is email_template_checkout.html

<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=$CHARSET" /> <base href="$BASE_HREF" /> <style type="text/css"> body {background-color:#ffffff; color:#000000; font-family:Verdana, Arial, Helvetica, sans-serif; text-align:center;} a:link {color:#0066cc;} a:hover {background-color:#eeeecc; color:#0066cc;} a:visited {color:#0066cc;} .holder {background-color:#f9f9f9; border:1px solid #9a9a9a; font-size:9px; text-align:left; width:550px;} .header {font-size:10px; padding:0px; width:550px;} .content {font-size:10px; padding:5px; width:550px;} .footer {border-top:1px solid #9a9a9a; font-size:9px; text-align:center; width:550px;} .extra-info {background-color:#cccc99; border:1px dashed #9a9a9a; font-size:10px; margin-top:10px; padding:5px; width:550px;} .content-line {padding:5px; font-size:10px;} .content-line-title {font-weight:bold; font-size:11px; padding-top:3px;} .order-detail-area {background-color:#CCCC99; border:1px #9a9a9a; width:542px; padding:2px; font-size:10px; } .product-details {font-size:10px;} .product-details-num {font-size:10px; font-weight:bold;} .order-totals-text {font-size:10px; font-weight:bold;} .order-totals-num {font-size:10px; } .comments {background-color:#FF6699; border:1px #9a9a9a; width:542px; padding:2px; font-size:10px; } .address-block {background-color:#E4E8F3; border:1px solid #9a9a9a; margin-top:3px;} .address {font-size:10px;} .payment-detail, .payment-footer {font-size:10px;} .extra-info {background-color:#cccc99; border:1px solid #9a9a9a; font-size:10px; margin-top:10px; padding:5px; width:550px;} .extra-info-bold {font-weight:bold;} .disclaimer {background-color:#f9f9f9; border:1px solid #cccccc; font-size:10px; margin-top:10px; padding:5px; width:550px;} .disclaimer1 {color:#666666; padding:5px;} .disclaimer1 a:link {color:#666666;} .disclaimer1 a:visited {color:#666666;} .disclaimer2 {color:#666666; padding:5px;} .copyright {border-bottom:0px solid #9a9a9a; padding:5px;} </style> </head> <body> <div class="holder"> <!-- Header Section --> <div class="header"> <img src="email/header.jpg" alt="logo" /> </div> <!-- Content Section --> <div class="content"> <div class="content-line"> $EMAIL_TEXT_HEADER <br /><br /> $EMAIL_FIRST_NAME $EMAIL_LAST_NAME,<br /> $EMAIL_THANKS_FOR_SHOPPING<br /> $EMAIL_DETAILS_FOLLOW<br /><br />
  $INTRO_ORDER_NUM_TITLE $INTRO_ORDER_NUMBER<br />
  $INTRO_DATE_TITLE $INTRO_DATE_ORDERED<br />
  <a href="$INTRO_URL_VALUE">$INTRO_URL_TEXT</a>
</div> <div class="content-line"><strong>$PRODUCTS_TITLE</strong></div> <div class="order-detail-area">$PRODUCTS_DETAIL</div> <div class="order-detail-area">$ORDER_TOTALS</div> <div class="comments">$ORDER_COMMENTS</div> <div class="content-line"><strong>$HEADING_ADDRESS_INFORMATION</strong></div> <div class="address-block"> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td valign="top" width="50%"> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="content-line-title"><strong>$ADDRESS_DELIVERY_TITLE</strong></td> </tr> <tr> <td class="address">$ADDRESS_DELIVERY_DETAIL</td> </tr>
  <tr>
    <td class="content-line-title"><strong>$SHIPPING_METHOD_TITLE</strong></td>
  </tr>
  <tr>
    <td class="content-line">$SHIPPING_METHOD_DETAIL</td>
  </tr>
  </table>
</td>
<td valign="top" width="50%">
  <table border="0" width="100%" cellspacing="0" cellpadding="2">
  <tr>
    <td class="content-line-title">$ADDRESS_BILLING_TITLE</td>
  </tr>
  <tr>
    <td class="address">$ADDRESS_BILLING_DETAIL</td>
  </tr>
  <tr>
    <td class="content-line-title"><strong>$PAYMENT_METHOD_TITLE</strong></td>
  </tr>
  <tr>
    <td class="payment-detail">$PAYMENT_METHOD_DETAIL</td>
  </tr>
  <tr>
    <td class="payment-footer">$PAYMENT_METHOD_FOOTER</td>
  </tr>
  </table>
 </td>
</tr>
</table> </div> </div> <!-- Footer Section --> <div class="footer"> <div class="copyright">$EMAIL_FOOTER_COPYRIGHT</div> </div> </div> <div class="disclaimer"> <div class="disclaimer1">$EMAIL_DISCLAIMER</div> <div class="disclaimer2">$EMAIL_SPAM_DISCLAIMER</div> </div> $EXTRA_INFO </body> </html>
22 Nov 2014, 10:00 PM
#13
gfdesigns avatar

gfdesigns

New Zenner

Join Date:
May 2009
Location:
WA
Posts:
65
Plugin Contributions:
0

Re: Broke Html order confirmation emails - only showing code

And this is what email archive manager preview gives me:

body {background-color:#ffffff; color:#000000; font-family:Verdana, Arial, Helvetica, sans-serif; text-align:center;} a:link {color:#0066cc;} a:hover {background-color:#eeeecc; color:#0066cc;} a:visited {color:#0066cc;} .holder {background-color:#f9f9f9; border:1px solid #9a9a9a; font-size:9px; text-align:left; width:550px;} .header {font-size:10px; padding:0px; width:550px;} .content {font-size:10px; padding:5px; width:550px;} .footer {border-top:1px solid #9a9a9a; font-size:9px; text-align:center; width:550px;} .extra-info {background-color:#cccc99; border:1px dashed #9a9a9a; font-size:10px; margin-top:10px; padding:5px; width:550px;} .content-line {padding:5px; font-size:10px;} .content-line-title {font-weight:bold; font-size:11px; padding-top:3px;} .order-detail-area {background-color:#CCCC99; border:1px #9a9a9a; width:542px; padding:2px; font-size:10px; } .product-details {font-size:10px;} .product-details-num {font-size:10px; font-weight:bold;} .order-totals-text {font-size:10px; font-weight:bold;} .order-totals-num {font-size:10px; } .comments {background-color:#FF6699; border:1px #9a9a9a; width:542px; padding:2px; font-size:10px; } .address-block {background-color:#E4E8F3; border:1px solid #9a9a9a; margin-top:3px;} .address {font-size:10px;} .payment-detail, .payment-footer {font-size:10px;} .extra-info {background-color:#cccc99; border:1px solid #9a9a9a; font-size:10px; margin-top:10px; padding:5px; width:550px;} .extra-info-bold {font-weight:bold;} .disclaimer {background-color:#f9f9f9; border:1px solid #cccccc; font-size:10px; margin-top:10px; padding:5px; width:550px;} .disclaimer1 {color:#666666; padding:5px;} .disclaimer1 a:link {color:#666666;} .disclaimer1 a:visited {color:#666666;} .disclaimer2 {color:#666666; padding:5px;} .copyright {border-bottom:0px solid #9a9a9a; padding:5px;}

24 Nov 2014, 2:11 PM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Broke Html order confirmation emails - only showing code

Your post says you're using v1.5.0 (which is from 2011).
Which files in /includes/classes/ and /includes/functions/ are not currently identical to original v150 code, and why?

24 Nov 2014, 2:22 PM
#15
gfdesigns avatar

gfdesigns

New Zenner

Join Date:
May 2009
Location:
WA
Posts:
65
Plugin Contributions:
0

Re: Broke Html order confirmation emails - only showing code

I looked at /includes/classes/order.php and I did not change anything but I uploaded the original from my computer just in case.

I have not touched anything in /includes/functions/

24 Nov 2014, 2:38 PM
#16
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Broke Html order confirmation emails - only showing code

Okay, then it's time to inspect all files on your site to study and understand every alteration in order to determine which change has suddenly broken things.
http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Diagnosing_Obscure_Issues

And, once that study is done, it's worth upgrading to a modern version too. Fortunately what you learn from that study is directly applicable to upgrading too.

24 Nov 2014, 5:39 PM
#17
gfdesigns avatar

gfdesigns

New Zenner

Join Date:
May 2009
Location:
WA
Posts:
65
Plugin Contributions:
0

Re: Broke Html order confirmation emails - only showing code

I've had the line break problem before many years ago and its due to me being on a Mac.
WinMerge is PC only do you have any Mac programs suggestions?

I'm also planning on upgrading but when I imported my data base it was not the correct php version so I need to do some research to see what I can do about it.

24 Nov 2014, 6:45 PM
#18
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Broke Html order confirmation emails - only showing code

FWIW I've used a Mac for the past 6 years and rarely have line-ending issues nowadays.

There are a number of text-file-comparison tools for Mac. I've listed some of the more common ones here: http://www.zen-cart.com/wiki/index.php/Useful_Tools

24 Nov 2014, 10:01 PM
#19
gfdesigns avatar

gfdesigns

New Zenner

Join Date:
May 2009
Location:
WA
Posts:
65
Plugin Contributions:
0

Re: Broke Html order confirmation emails - only showing code

Thanks for the link! I just downloaded the sublime text editor the other day and it's very nice.

I'll update and let everyone know what happened if/when I figure it out.

I just talked to one of my customers and thankfully she got the basic text order confirmation. I think all my customers are getting the text version not sure why. I doubt anyone signs up for text versions. I went through and looked at a few customer settings and they all chose HTML for some unknown reason.

25 Nov 2014, 8:03 PM
#20
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Broke Html order confirmation emails - only showing code

gfdesigns:

I doubt anyone signs up for text versions. I went through and looked at a few customer settings and they all chose HTML for some unknown reason.Is it because you've got your store defaults set to sign them up for HTML by default?

For the time-being, if you want to force text-only messages (ie: for this week until you can sort it out after this week's sales), set MIME HTML to off in Admin->Configuration->Email Options.