skipunda Posted March 23, 2009 Share Posted March 23, 2009 Hi all, Just wanted to add this line into the customer email that goes and just checking this is the right coding as I cant test this. Please note lack of "", instead replaced with ' ' so the syntax looks correct in my wysiwyg editor. $email_order.=$order->customer['firstname'] . ' ' . $order->customer['lastname'].' '.$order->delivery['company'].' '.$order->delivery['street_address']." ".$order->delivery['city']." ". $order->delivery['suburb']." ".$order->delivery['state']." ".$order->delivery['country']['title']." ".$order->delivery['postcode']; Ta Link to comment Share on other sites More sharing options...
skipunda Posted March 24, 2009 Author Share Posted March 24, 2009 Hi all, Just wanted to add this line into the customer email that goes and just checking this is the right coding as I cant test this. Please note lack of "", instead replaced with ' ' so the syntax looks correct in my wysiwyg editor. $email_order.=$order->customer['firstname'] . ' ' . $order->customer['lastname'].' '.$order->delivery['company'].' '.$order->delivery['street_address']." ".$order->delivery['city']." ". $order->delivery['suburb']." ".$order->delivery['state']." ".$order->delivery['country']['title']." ".$order->delivery['postcode']; Ta This is a better way to put it - namely because of the 'new line' declarations, saving on white space and making it easier to parse $email_order.= $order->customer['firstname'] . ' ' . $order->customer['lastname']."\n" . $order->delivery['company']."\n" . $order->delivery['street_address']."\n" . $order->delivery['city']."\n" . $order->delivery['suburb']."\n" . $order->delivery['state']."\n" . $order->delivery['country']['title']."\n" . $order->delivery['postcode']; and yes I did just reply to my own post <wink> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.