mme Posted May 19, 2008 Posted May 19, 2008 hi I am trying to make it so that when the order status is updated a email is also sent to a person that packs my products and sends them to the customer. So I added the code in orders.php it sends the email but half of the varibles dont work like the customers address ect.. Here is the html code for the email: <html> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=iso-8859-1"> <style type="text/css"> TD{FONT-FAMILY:Verdana,Tahoma,Arial,"Sans Serif";FONT-SIZE:10pt} BODY{FONT-FAMILY:Verdana,Tahoma,Arial,"Sans Serif";FONT-SIZE:10pt} .style2 { font-size: 8pt; font-style: italic; } .style3 {font-size: 8pt} .style4 {color: #FFFFFF} .style5 {color: #000000} </style> </head> <body bgColor="#eeeeee"> <table cellSpacing="1" cellPadding="0" width="700" bgColor="#cccccc" border="0" align="center"><tr> <td bgcolor="white"> <table cellSpacing="0" cellPadding="15" width="100%"><tr><td> <table cellSpacing="0" cellPadding="0" width="100%" border="0"><tr> <td><img src="' . HTTP_SERVER . '/site/shop/includes/modules/UHtmlEmails/files/header.gif" alt="Header" border="0"></td> <td align="center"><div align="right"><img src="' . HTTP_SERVER . '/site/shop/includes/modules/UHtmlEmails/files/logo_shop.gif" alt="Logo" border="0"></div></td> </tr></table> <hr size="0" color="#CCCCCC"> <table cellspacing="0" cellpadding="10" width="100%"><tr><td><table cellspacing="0" cellpadding="10" width="100%"> <tr> <td> <p><span class="style2"><small>This is an automated email regarding order: '.$oID.'</small></span><br> </p> <p>Order Details:</p> <p><strong>Customer Name:</strong> '. $check_status['customers_name'] .'<br> <table width="86%" border="0"> <tr> <td width="79%" bgcolor="#333333"><strong><span class="style4">Customer Address: </span><br> </strong></td> <td width="3%" rowspan="2"> </td> <td width="18%" rowspan="2">Print Address</td> </tr> <tr> <td bgcolor="#CCCCCC">'. $check_status['delivery_street_address']. '<br> '. $check_status['street_address']. '<br> '. $check_status['suburb']. '<br> '. $check_status['city']. '<br> '. $check_status['postcode']. '<br> '. $check_status['state']. '<br> '. $check_status['country']. '</td> </tr> </table> <p> </p> <table width="550" border="0"> <tr bgcolor="#333333"> <td width="43%"><div align="center" class="style1 style4"><strong>Product</strong></div></td> <td width="18%"><div align="center" class="style1 style4"><strong>Quantity</strong></div></td> </tr>'; for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { $html_ship_email .=' <tr bgcolor="#CCCCCC"> <td><div align="center" class="style1">' . $check_status[$i]["name"] . $html_ship_email_product_attributes[$i]. '</div></td> <td><div align="center" class="style1">' . $check_status[$i]["qty"].'</div></td> </tr>'; } $html_ship_email .=' </table> <p><br> <br> <br> </td> </tr></table></td></tr></table> <hr size="0" color="#CCCCCC"> <center> <br><small>© ' .$y. ' <a href="' . HTTP_SERVER . '" class="style5">' . STORE_NAME . '</a></small><br> </center></td></tr></table></td></tr></table> </body></html>
mme Posted May 20, 2008 Author Posted May 20, 2008 If somebody could help me with this that would great
Recommended Posts
Archived
This topic is now archived and is closed to further replies.