Kes Posted July 24, 2006 Posted July 24, 2006 I know there is probably a simple answer but i really have struggled with this. With or without email html turned on my invoice emails and all other emails are in basic font. However i want them in comic sans. Invoice.php calls style sheet but for some reason isn't following the .ccs This is the start of invoice.php require('includes/application_top.php'); require(DIR_WS_CLASSES . 'currencies.php'); $currencies = new currencies(); $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']); $orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'"); //get the date from the order table $date_resource = tep_db_query("select date_purchased from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'"); //get the array from the result $date = mysql_fetch_array($date_resource); //get the date as a string from the result $date_purchased = substr($date['date_purchased'], 8, 2) . '/' . substr($date['date_purchased'], 5, 2) . '/' . substr($date['date_purchased'], 0, 4); include(DIR_WS_CLASSES . 'order.php'); $order = new order($oID); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title><?php echo TITLE; ?></title> <link rel="stylesheet" type="text/css" href="includes/stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF"> <span class="style1"> <!-- body_text //--> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading" align="center"><?php echo tep_image(DIR_WS_IMAGES . 'rbs.jpg', 'RBs Organics', '204', '130'); ?></td></tr> <tr> <td class="pageHeading"align="center"><?php echo (STORE_NAME_ADDRESS); ?></td> </tr> </table></td> this is part of stylesheet TD.pageHeading, DIV.pageHeading { font-family: "Comic Sans MS", sans-serif; font-size: 20px; font-weight: bold; color: #006633; } Any ideas as to why this is not in comic sans would be much appreciated. cheers
♥Monika in Germany Posted July 24, 2006 Posted July 24, 2006 invoice.php does not send any emails comic is not a default font, so not everyone would see it anyway when sending html emails and wanting to use stylesheets, turning on html emails in admin will not do - you need to create a whole html page to be sent where you can specify a stylesheet to be used - again, comic is not a good choice. :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
Guest Posted July 24, 2006 Posted July 24, 2006 Just turning on HTML email in your admin is not enough: in oder to send HTML emails, you need to install the following mod: http://www.oscommerce.com/community/contributions,3160/ Enjoy
Recommended Posts
Archived
This topic is now archived and is closed to further replies.