fatmcgav Posted April 13, 2005 Posted April 13, 2005 Hi there, I recently downloaded and installed send_order_html_email_v5.4, and on the whole it looks like a great contrib. However, the one big problem i've found with it is that it's very difficult to customise teh design and layout of the email, as u need to go into a php file, which is stringed togeather in a php object. eg: <?php $html_email_order = "<html>"; $html_email_order .= "<head>"; $html_email_order .= "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"> "; $html_email_order .= "$Varhttp "; $html_email_order .= "$Varstyle "; $html_email_order .= "</head>"; $html_email_order .= "<body>"; $html_email_order .= "<div align=\"center\">"; $html_email_order .= "<table width=\"600\" border=\"0\" cellpadding=\"2\" cellspacing=\"2\">"; $html_email_order .= "<tr><td><div align=\"center\"> $Varlogo </div></td></tr>"; $html_email_order .= "<tr><td>"; $html_email_order .= "<table width=\"600\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#F9F9F9\">"; $html_email_order .= "<tr> "; $html_email_order .= "<td>"; As you can see, it's impossible to edit the layout without having an indepth knoweledge of html, and even then u need to be careful to make sure ure formatting everything right. So what i want to do is intergrate it into the admin panel, so that my client can just log-in to the admin panel, select the email he wants to customise - both create account and order confirm have different emails - and customise it in a wysiwyg editor - SPAW on the current site - which he can then save to the file without having to edit the hard code. Now i'm not sure of the praticalitys' of this, or whether it's even possible, but i cant see why it shouldnt be - is it much different to category descriptions? Know looking throught the coding of the contib, i can see that it is based on lots of variable, as u can see in the above code snippet - $Varstyle, $Varhttp, etc - now how i would go about intergrating those, i'm not sure - the most obvious solution is drag-n-drop, but how feasible that is, i'm not sure. I'm a relative PHP newbie, but i'm a quick learner, and like to throw myself in at the deep end. Any help or pointers on this would be greatly appreicated. Cheers Fatmcgav Quote
fatmcgav Posted April 18, 2005 Author Posted April 18, 2005 Anybody got any ideas on where i start with this? I've had a couple of try's, but i cant seem to get anything to work. Cheers Fatmcgav Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.