Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Intergrating HTML Order email with admin


fatmcgav

Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...