msheno01 Posted May 2, 2005 Share Posted May 2, 2005 I have searched the file to reference the file where you can edit the email text but I cant find it anywhere. Using this contribution, "Email Invoice 1.0"Email Invoice. Where do I change the text that appears in the email? Thanks Moneer Quote Link to comment Share on other sites More sharing options...
Stevis2002 Posted May 2, 2005 Share Posted May 2, 2005 I installed this contribution, and then enabled it via admin, did a test order, but i still got the same old text email. I also have mime enabled, but i have other contributions enabled. Here's the edited section of checkout_process.php which i am unsure if it is correct or not? Please can somebody help me? Thanks, Steve if (EMAIL_INVOICE == 'true') { require(DIR_WS_MODULES . EMAIL_INVOICE_DIR . FILENAME_EMAIL_INVOICE); } else { if (!tep_session_is_registered('noaccount')) { $email_order = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n"; if ($order->info['comments']) { $email_order .= tep_db_output($order->info['comments']) . "\n\n"; } $email_order .= EMAIL_TEXT_PRODUCTS . "\n" . EMAIL_SEPARATOR . "\n" . $products_ordered . EMAIL_SEPARATOR . "\n"; } else { $email_order = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n"; if ($order->info['comments']) { $email_order .= tep_db_output($order->info['comments']) . "\n\n"; } $email_order .= EMAIL_TEXT_PRODUCTS . "\n" . EMAIL_SEPARATOR . "\n" . $products_ordered . EMAIL_SEPARATOR . "\n"; } for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) { $email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n"; } if ($order->content_type != 'virtual') { $email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n"; } $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n"; if (is_object($$payment)) { $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" . EMAIL_SEPARATOR . "\n"; $payment_class = $$payment; $email_order .= $payment_class->title . "\n\n"; if ($payment_class->email_footer) { $email_order .= $payment_class->email_footer . "\n\n"; } } /*=======================================================================*/ /**** Email Invoice Mod Snippet ****/ } /**** End of Email Invoice Mod Snippet ****/ Quote Link to comment Share on other sites More sharing options...
msheno01 Posted May 2, 2005 Author Share Posted May 2, 2005 There is a new version of the contribution installed but I dont think it is the same. The orginal one send out an email on checkout. The new uploaded one is a template system for order updates. Any ideas? Moneer Quote Link to comment Share on other sites More sharing options...
msheno01 Posted May 2, 2005 Author Share Posted May 2, 2005 Quick question. I was testing the emails that go out when the status of the order changes and found out that they are send in html in a weird language with templates from another company. The file that edits that template is html_email.php under modules. I dont even know where to change the images or the link to modify it. here is the file--any idea on how to change it? <?php/* $Id: send_html_mail, v 5.0 2003/06/29 22:50:52 Gyakutsuki Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License*/ $html_orders = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">";$html_orders .= "<HTML>";$html_orders .= "<HEAD>";$html_orders .= "<TITLE> $EMAIL_TEXT_TITLE </TITLE>";$html_orders .= "<META http-equiv=Content-Type content=\"text/html; charset=iso-8859-1\">";$html_orders .= "<META content=\"MSHTML 6.00.2900.2180\" name=GENERATOR>";$html_orders .= "$VARSTYLE ";$html_orders .= "</HEAD>";$html_orders .= "$BODY ";$html_orders .= "<BR> ";$html_orders .= "<DIV align=\"center\"> ";$html_orders .= " <TABLE cellSpacing=\"0\" cellPadding=\"0\" width=\"64\" border=\"0\"> ";$html_orders .= " <TBODY>"; $html_orders .= " <TR> ";$html_orders .= " <TD align=\"middle\"> ";$html_orders .= " $EMAIL_IMAGE_TITRE_ENVOI ";$html_orders .= " </TD> "; $html_orders .= " </TR>"; $html_orders .= " <TR>"; $html_orders .= " <TD align=\"middle\">"; $html_orders .= " <TABLE cellSpacing=\"0\" cellPadding=\"0\" width=\"100%\" border=\"0\">"; $html_orders .= " <TBODY>"; $html_orders .= " <TR> ";$html_orders .= " <TD align=\"middle\" width=\"28\"> </TD> ";$html_orders .= " <TD align=\"middle\" bgColor=\"#ffffff\">"; $html_orders .= " <TABLE cellSpacing=\"2\" cellPadding=\"5\" border=\"0\">"; $html_orders .= " <TBODY> ";$html_orders .= " <TR> ";$html_orders .= " <TD>";$html_orders .= " <TABLE cellSpacing=\"0\" cellPadding=\"0\" width=\"570\" border=\"0\">"; $html_orders .= " <TBODY>"; $html_orders .= " <TR> ";$html_orders .= " <TD> $EMAIL_IMAGE_VARLOGO </TD> ";$html_orders .= " <TD vAlign=\"top\" align=\"right\" rowSpan=\"2\"> ";$html_orders .= " <TABLE cellSpacing=\"1\" cellPadding=\"3\" align=\"right\" bgColor=\"#cc0000\" border=\"0\"> ";$html_orders .= " <TBODY> ";$html_orders .= " <TR> ";$html_orders .= " <TD align=\"middle\" valign=\"top\" class=\"commande\"> ";$html_orders .= " <div align=\"left\">";$html_orders .= " $EMAIL_TEXT_ORDER_NUMBER $oID <BR> ";$html_orders .= " $EMAIL_TEXT_DATE_SHIPPING ";$html_orders .= " $EMAIL_TEXT_DATE </FONT> ";$html_orders .= " </div>";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " </TBODY> ";$html_orders .= " </TABLE>";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " <TR> ";$html_orders .= " <TD class=\"texte_small\"> ";$html_orders .= " $STORE_NAME_ADRESS ";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " </TBODY> ";$html_orders .= " </TABLE>";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " <TR> ";$html_orders .= " <TD> ";$html_orders .= " <TABLE cellSpacing=\"0\" cellPadding=\"5\" border=\"0\"> ";$html_orders .= " <TBODY> ";$html_orders .= " <TR> ";$html_orders .= " <TD>";$html_orders .= " <DIV align=\"center\"> ";$html_orders .= " <CENTER> ";$html_orders .= " <TABLE style=\"BORDER-COLLAPSE: collapse\" borderColor=\"#111111\" cellSpacing=\"0\" cellPadding=\"4\" width=546 bgColor=\"#ffffff\" border=\"0\"> ";$html_orders .= " <TBODY> ";$html_orders .= " <TR> ";$html_orders .= " <TD vAlign=\"top\" bgColor=\"#ffffff\" colSpan=\"2\">";$html_orders .= " <TABLE cellSpacing=4 cellPadding=\"0\" width=\"536\" border=\"0\"> ";$html_orders .= " <TBODY> ";$html_orders .= " <TR> ";$html_orders .= " <TD vAlign=\"top\" align=\"middle\" colSpan=\"2\"> ";$html_orders .= " $EMAIL_IMAGE_ARGO ";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " <TR> ";$html_orders .= " <TD vAlign=\"top\" width=\"92\"> <div align=\"center\"> ";$html_orders .= " $EMAIL_IMAGE_FOURMI </div>";$html_orders .= " </TD> ";$html_orders .= " <TD vAlign=\"top\" class=\"texte_intro\"> ";$html_orders .= " <P> $EMAIL_TEXT_DEAR </P> ";$html_orders .= " $EMAIL_TEXT_INTRO_CUSTOMERS ";$html_orders .= " <div align=\"right\">";$html_orders .= " <p>$EMAIL_TEXT_TEXT_INTRO_CUSTOMERS_SERVICE</p>";$html_orders .= " <p>";$html_orders .= " <div align=\"left\">";$html_orders .= " </div>";$html_orders .= " <hr align=\"left\">";$html_orders .= " <div align=\"left\"><br>";$html_orders .= " $EMAIL_TEXT_FOLLOW_ORDER <p>";$html_orders .= " $EMAIL_TEXT_DATE_ORDERED ";$html_orders .= " $EMAIL_TEXT_DATE_ORDER ";$html_orders .= " $EMAIL_TEXT_INVOICE_URL <a href=\" HTTP_SERVER . DIR_WS_CATALOG . 'account_history_info.php?order_id=' . $oID;\"> $EMAIL_IMAGE_COMMANDE </a>";$html_orders .= " <br><br>";$html_orders .= " $EMAIL_TEXT_STATUT<br><br>";$html_orders .= " <li>";$html_orders .= " $EMAIL_TEXT_STATUS_UPDATE1";$html_orders .= " </li>";$html_orders .= " $EMAIL_TEXT_COMMENTS_UPDATE ";$html_orders .= " $notify_comments ";$html_orders .= " </div>";$html_orders .= " <br>";$html_orders .= " </div>";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " <TR> ";$html_orders .= " <TD vAlign=\"top\" colSpan=\"2\"> ";$html_orders .= " <TABLE id=\"AutoNumber1\" cellSpacing=\"0\" cellPadding=\"0\" width=\"100%\" border=\"1\"> ";$html_orders .= " <TBODY> ";$html_orders .= " <TR> ";$html_orders .= " <TD class=\"tableau_texte_post\"> ";$html_orders .= " <P align=\"center\">";$html_orders .= " <B>";$html_orders .= " $EMAIL_TEXT_POST ";$html_orders .= " $EMAIL_IMAGE_POSTE ";$html_orders .= " </P>";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " </TBODY> ";$html_orders .= " </TABLE>";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " </TBODY> ";$html_orders .= " </TABLE>";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " <TR> ";$html_orders .= " <TD vAlign=\"top\" bgColor=\"#ffffff\" colSpan=\"2\"> ";$html_orders .= " <TABLE style=\"BORDER-COLLAPSE: collapse\" borderColor=\"#111111\" cellSpacing=\"0\" borderColorDark=\"#999999\" cellPadding=\"0\" width=\"540\" borderColorLight=\"#999999\" border=\"1\"> ";$html_orders .= " <TBODY> ";$html_orders .= " <TR> ";$html_orders .= " <TD> ";$html_orders .= " <TABLE id=\"AutoNumber1\" cellSpacing=\"4\" cellPadding=\"0\" width=\"100%\" border=\"0\"> ";$html_orders .= " <TBODY> ";$html_orders .= " <TR> ";$html_orders .= " <TD vAlign=\"top\" width=\"100%\">";$html_orders .= " <TABLE cellSpacing=\"1\" cellPadding=\"4\" width=\"531\" align=\"center\" bgColor=\"#ffffff\" border=\"0\"> ";$html_orders .= " <TBODY> ";$html_orders .= " <TR> ";$html_orders .= " <TD vAlign=\"top\" class=\"tableau_delay\"> ";$html_orders .= " $EMAIL_TEXT_DELAY ";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " <TR> ";$html_orders .= " <TD vAlign=\"top\" class=\"tableau_delay_content\"> ";$html_orders .= " $EMAIL_TEXT_DELAY_CONTENT ";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " </TBODY> ";$html_orders .= " </TABLE>";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " <TR> ";$html_orders .= " <TD vAlign=\"top\" colSpan=\"3\"> ";$html_orders .= " <TABLE cellSpacing=\"1\" cellPadding=\"4\" width=\"531\" align=\"center\" border=\"0\"> ";$html_orders .= " <TBODY> ";$html_orders .= " <TR> ";$html_orders .= " <TD vAlign=\"top\" class=\"tableau_delay\" >";$html_orders .= " $EMAIL_TEXT_WARNING ";$html_orders .= " </TD>";$html_orders .= " </TR> ";$html_orders .= " <TR> ";$html_orders .= " <TD vAlign=\"top\" class=\"tableau_delay_warning\">";$html_orders .= " $EMAIL_TEXT_WARNING_CONTENT ";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " </TBODY> ";$html_orders .= " </TABLE>";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " <TR> ";$html_orders .= " <TD vAlign=\"top\" colSpan=\"3\">";$html_orders .= " <TABLE cellSpacing=\"1\" cellPadding=\"4\" width=\"531\" align=\"center\" border=\"0\"> ";$html_orders .= " <TBODY> ";$html_orders .= " <TR> ";$html_orders .= " <TD cvAlign=\"top\" class=\"tableau_delay\">";$html_orders .= " <STRONG> $EMAIL_TEXT_COMPOSE </STRONG> ";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " <TR> ";$html_orders .= " <TD vAlign=\"top\" class=\"tableau_delay_content\"> ";$html_orders .= " $EMAIL_TEXT_COMPOSE_CONTENT ";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " </TBODY> ";$html_orders .= " </TABLE>";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " </TBODY> ";$html_orders .= " </TABLE>";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " </TBODY> ";$html_orders .= " </TABLE>";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " </TBODY> ";$html_orders .= " </TABLE> ";$html_orders .= " </CENTER> ";$html_orders .= " </DIV></TD> ";$html_orders .= " </TR> ";$html_orders .= " <TR height=5> ";$html_orders .= " <TD height=5></TD> ";$html_orders .= " </TR> ";$html_orders .= " <TR> ";$html_orders .= " <TD class=\"tableau_texte_contact\"> ";$html_orders .= " <B> $EMAIL_TEXT_CONTACT_SERVICE_CLIENT ";$html_orders .= " $VARHTTP</B> ";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " <TR> ";$html_orders .= " <TD> ";$html_orders .= " <TABLE style=\"BORDER-COLLAPSE: collapse\" borderColor=\"#111111\" cellSpacing=\"0\" borderColorDark=\"#999999\" cellPadding=\"0\" width=560 borderColorLight=\"#999999\" border=\"1\"> ";$html_orders .= " <TBODY> ";$html_orders .= " <TR> ";$html_orders .= " <TD vAlign=\"top\">";$html_orders .= " <TABLE style=\"LEFT: 0px; TOP: 1px\" cellSpacing=\"0\" cellPadding=\"4\" border=\"0\" width=100%> ";$html_orders .= " <TBODY> ";$html_orders .= " <TR> ";$html_orders .= " <TD vAlign=\"top\" width=\"33%\">";$html_orders .= " <TABLE cellSpacing=\"0\" cellPadding=\"4\" width=\"100%\" border=\"0\"> ";$html_orders .= " <TBODY> ";$html_orders .= " <TR> ";$html_orders .= " <TD class=\"tableau_delay\"> ";$html_orders .= " <B> $EMAIL_TEXT_CONTACT_SERVICE_CLIENT_SHEET1 </B>";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " <TR> ";$html_orders .= " <TD class=\"tableau_delay_content\" height=\"75\"> ";$html_orders .= " $EMAIL_TEXT_CONTACT_SERVICE_CLIENT_SHEET_CONTENT1 ";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " </TBODY> ";$html_orders .= " </TABLE>";$html_orders .= " </TD> ";$html_orders .= " <TD vAlign=\"top\" width=\"33%\">";$html_orders .= " <TABLE cellSpacing=\"0\" cellPadding=\"4\" width=\"100%\" border=\"0\"> ";$html_orders .= " <TBODY> ";$html_orders .= " <TR> ";$html_orders .= " <TD class=\"tableau_delay\"> ";$html_orders .= " <B> $EMAIL_TEXT_CONTACT_SERVICE_CLIENT_SHEET2 </B> ";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " <TR> ";$html_orders .= " <TD class=\"tableau_delay_content\" height=75>";$html_orders .= " $EMAIL_TEXT_CONTACT_SERVICE_CLIENT_SHEET_CONTENT2 ";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " </TBODY> ";$html_orders .= " </TABLE>";$html_orders .= " </TD> ";$html_orders .= " <TD vAlign=\"top\" width=\"33%\">";$html_orders .= " <TABLE cellSpacing=\"0\" cellPadding=\"4\" width=\"100%\" border=\"0\"> ";$html_orders .= " <TBODY> ";$html_orders .= " <TR> ";$html_orders .= " <TD class=\"tableau_delay\"> ";$html_orders .= " <B> $EMAIL_TEXT_CONTACT_SERVICE_CLIENT_SHEET3 </B> ";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " <TR> ";$html_orders .= " <TD class=\"tableau_delay_content\" height=75>";$html_orders .= " $EMAIL_TEXT_CONTACT_SERVICE_CLIENT_SHEET_CONTENT3 ";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " </TBODY> ";$html_orders .= " </TABLE>";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " <TR> ";$html_orders .= " <TD vAlign=\"top\" class=\"tableau_delay\" colSpan=\"3\"> ";$html_orders .= " <B> $EMAIL_TEXT_CONTACT</B>";$html_orders .= " </TD> ";$html_orders .= " </TR> "; $html_orders .= " <TR> ";$html_orders .= " <TD vAlign=\"top\" colSpan=\"3\"> ";$html_orders .= " <FONT face=\"Arial\" color=\"black\" size=\"1\">";$html_orders .= " $EMAIL_TEXT_CONTACT_CONTENT ";$html_orders .= " </FONT>";$html_orders .= " </TD> ";$html_orders .= " </TR>";$html_orders .= " <TR>";$html_orders .= " <TD vAlign=\"top\" colSpan=\"3\">";$html_orders .= " <div align=\"right\">";$html_orders .= " <a href=\" HTTP_SERVER . DIR_WS_CATALOG . '/contact_us.php'\"> $EMAIL_IMAGE_SVC </a>";$html_orders .= " </div> ";$html_orders .= " </TD>";$html_orders .= " </TR> ";$html_orders .= " </TBODY> ";$html_orders .= " </TABLE> ";$html_orders .= " <div align=\"right\"><BR>";$html_orders .= " </div>";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " </TBODY> ";$html_orders .= " </TABLE> ";$html_orders .= " <FONT face=\"Arial,Helvetica,Geneva,Swiss,SunSans-Regular\" size=\"1\">";$html_orders .= " $EMAIL_TEXT_NOTE </FONT>";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " <TR height=25> ";$html_orders .= " <TD vAlign=bottom align=\"right\" height=\"25\"><FONT color=#003399 size=\"2\"><B><U></U></B> </FONT></TD> ";$html_orders .= " </TR> ";$html_orders .= " </TBODY> ";$html_orders .= " </TABLE> ";$html_orders .= " <TABLE cellSpacing=\"0\" cellPadding=2 width=\"100%\" border=\"1\"> ";$html_orders .= " <TBODY> ";$html_orders .= " <TR> ";$html_orders .= " <TD vAlign=\"top\" align=\"middle\" class=\"tableau_texte_fin\" colSpan=\"3\">";$html_orders .= " $EMAIL_TEXT_NOTE1 ";$html_orders .= " </TD> ";$html_orders .= " </TR> ";$html_orders .= " </TBODY> ";$html_orders .= " </TABLE> ";$html_orders .= " <STRONG><U><FONT color=#003399 size=\"2\"> ";$html_orders .= " Quote Link to comment Share on other sites More sharing options...
saborchulo Posted May 2, 2005 Share Posted May 2, 2005 (edited) Wow guys I just realized this thread was here, I apologize for not answering some of your questions sooner. @Stevis2002 Make sure that in your admin under Configuration -> E-mail Options -> Email Invoice to Customer Make sure that is set to 'true' I am uploading an update that will correct that in the sql statement, I believe it is making it a 1 by default which is incorrect. Sorry about that, it was a typo Edited May 2, 2005 by saborchulo Quote Link to comment Share on other sites More sharing options...
saborchulo Posted May 2, 2005 Share Posted May 2, 2005 I have searched the file to reference the file where you can edit the email text but I cant find it anywhere. Using this contribution, "Email Invoice 1.0"Email Invoice. Where do I change the text that appears in the email? Thanks Moneer <{POST_SNAPBACK}> Moneer This contribution uses the stock version of invoice.php found on the admin side of osCommerce. To change the text or HTML layout or what have you, you would need to modify the html output of this file: catalog -> admin -> invoice.php If you only want to change some css properties, modify the css file: catalog -> admin -> includes -> stylesheet.css and then copy and paste it into the mod folder (overwrite the existing css file if prompted), which should be something like catalog -> includes -> modules -> email_invoice If you just want to change the product headers or simple text, that is defined in the invoice.php language file which would be under catalog -> admin -> includes -> languages -> english (or your language) -> invoice.php Quote Link to comment Share on other sites More sharing options...
Stevis2002 Posted May 2, 2005 Share Posted May 2, 2005 Wow guys I just realized this thread was here, I apologize for not answering some of your questions sooner. @Stevis2002 Make sure that in your admin under Configuration -> E-mail Options -> Email Invoice to Customer Make sure that is set to 'true' I am uploading an update that will correct that in the sql statement, I believe it is making it a 1 by default which is incorrect. Sorry about that, it was a typo <{POST_SNAPBACK}> Yes, I have done that and it works to a certain extent, but with the fancier invoice contribution, it doesn't load the images for the invoice borders etc. Any ideas? Thanks for reply, Steve Quote Link to comment Share on other sites More sharing options...
saborchulo Posted May 2, 2005 Share Posted May 2, 2005 Fancier invoice contribution? Which one is it exactly? Let me know so I can look at what that mod does and adjust my mod accordingly to work with the people that have modified their original invoice.php to suit their needs. Quote Link to comment Share on other sites More sharing options...
msheno01 Posted May 2, 2005 Author Share Posted May 2, 2005 Thanks, I will give that a try. Also when the email is sent out, the address, billing boxes are blacked out. I will try to play around with the css file and see where I can get. Thanks Moneer Quote Link to comment Share on other sites More sharing options...
Stevis2002 Posted May 2, 2005 Share Posted May 2, 2005 Fancier invoice contribution? Which one is it exactly? Let me know so I can look at what that mod does and adjust my mod accordingly to work with the people that have modified their original invoice.php to suit their needs. <{POST_SNAPBACK}> Yeah, It's THIS Contribution Named Fancier Invoice and Packing Slip Thanks, Steve I tried changing the ../images, to the full url so that it gets called from the email program but that didn't work either :( Quote Link to comment Share on other sites More sharing options...
saborchulo Posted May 3, 2005 Share Posted May 3, 2005 Stevis 2002 I just released Email Invoice v 1.1 It has been rewritten to support the look that the Fancier Invoice and Packing Slip mod gives you along with the OSC standard invoice look. I have also rewritten the install instructions as well so let me know how it goes. Contrib Email Invoice Quote Link to comment Share on other sites More sharing options...
Stevis2002 Posted May 3, 2005 Share Posted May 3, 2005 Ok, it's looking good apart from it's a bit on the big side, and the definition text isn't working....eg....INVOICE_TEXT_INVOICE INVOICE_TEXT_NUMBER_SIGN INVOICE_TEXT_CURRENT_YEARINVOICE_TEXT_DASH 19 Thanks, Steve Quote Link to comment Share on other sites More sharing options...
saborchulo Posted May 3, 2005 Share Posted May 3, 2005 Hmmm, all the definitions are working on my side. I will take a closer look at it to make sure there isn't anything I may have missed. Quote Link to comment Share on other sites More sharing options...
saborchulo Posted May 3, 2005 Share Posted May 3, 2005 This is what I get in hotmail This is what I get in outlook You see the # sign and all that is defined and included in the html email. Maybe check the local/config.php file and make sure the invoice.php language file is correct Quote Link to comment Share on other sites More sharing options...
thebizzboy Posted May 4, 2005 Share Posted May 4, 2005 hello, i need help on this contribution... i had no problem installing it and testing it...all seemed to work...then i receieved an order through paypal and it came up the old way through email. I have paypal ipn v3.1.5 that may effect it....i also have purchase without account installed...is anyone else having this issue? Quote Link to comment Share on other sites More sharing options...
thebizzboy Posted May 4, 2005 Share Posted May 4, 2005 hello, i need help on this contribution...i had no problem installing it and testing it...all seemed to work...then i receieved an order through paypal and it came up the old way through email. I have paypal ipn v3.1.5 that may effect it....i also have purchase without account installed...is anyone else having this issue? <{POST_SNAPBACK}> I believe this maybe the code that we have to change inorder for it to work this is found in catalog/includes/modules/payment/paypal/classes/osC/Order.class.php this is similar code that matched with checkout proccess...so im guessing this maybe the key but i couldnt figure out how to get the emails to show in the template format....i tried making changes just like the checkout process but it didnt work...any help please // lets start with the email confirmation include($this->checkoutProcessLanguageFile); $email_order = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $this->orderID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . $this->accountHistoryInfoURL . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n"; $customerComments = $this->getCustomerComments(); if ($customerComments) { $email_order .= tep_db_output($customerComments) . "\n\n"; } $email_order .= EMAIL_TEXT_PRODUCTS . "\n" . EMAIL_SEPARATOR . "\n" . $this->products_ordered . EMAIL_SEPARATOR . "\n"; for ($i=0, $n=sizeof($order->totals); $i<$n; $i++) { $email_order .= strip_tags($order->totals[$i]['title']) . ' ' . strip_tags($order->totals[$i]['text']) . "\n"; } if ($this->contentType != 'virtual') { $email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . tep_address_label($order->customer['id'], $this->sendTo, 0, '', "\n") . "\n"; } $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . tep_address_label($order->customer['id'], $this->billTo, 0, '', "\n") . "\n\n"; $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" . EMAIL_SEPARATOR . "\n"; $email_order .= $this->paymentTitle . "\n\n"; tep_mail($order->customer['name'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } } function setOrderPaymentID($payment_id,$oID='') { $order_id = !empty($oID) ? $oID : $this->orderID; tep_db_query("update " . TABLE_ORDERS . " set payment_id = '" . (int)$payment_id . "' where orders_id = '" . (int)$order_id . "'"); } function removeCustomersBasket($customer_id) { tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET . " where customers_id = '" . (int)$customer_id . "'"); tep_db_query("delete from " . TABLE_CUSTOMERS_BASKET_ATTRIBUTES . " where customers_id = '" . (int)$customer_id . "'"); } }//end class ?> Quote Link to comment Share on other sites More sharing options...
Guest Posted May 4, 2005 Share Posted May 4, 2005 hello, i am having trouble with installation. i dont get what to place here; define('DIR_FS_ADMIN', 'C:/Apache2/Apache2/htdocs/osc22ms2/catalog/admin/'); // absolute path required here is how i get to my admin panel www.thepetmedstore.com/catalog/admin is that what i put there? Quote Link to comment Share on other sites More sharing options...
saborchulo Posted May 4, 2005 Share Posted May 4, 2005 That is how you get to it going through the web, but you will have to add your public web folder. So lets say that your public folder directory root is something like /home/petmedstore/www/ Then the 'DIR_FS_ADMIN' would be /home/petmedstore/www/catalog/admin/ Wherever you serve up public files (files that can be seen from the internet) plus the directories that lead to your catalog admin folder. Quote Link to comment Share on other sites More sharing options...
Guest Posted May 4, 2005 Share Posted May 4, 2005 Thanks!!! It works! Quote Link to comment Share on other sites More sharing options...
saborchulo Posted May 4, 2005 Share Posted May 4, 2005 @ Bizz It gets harder to troubleshoot the situation when you have different contributions installed. What are the specific module names, perhaps I can write a seperate version to compensate for what the other modules may be modifying. Quote Link to comment Share on other sites More sharing options...
gabbadude Posted May 5, 2005 Share Posted May 5, 2005 I followed the installation process to the "T". I even double checked the installation processes and changes I made. I seem to be getting the below error: Warning: main(includes/modules/email_invoice/email_invoice.php): failed to open stream: No such file or directory in /home/httpd/vhosts/<web_url>/httpdocs/catalog/checkout_process.php on line 231 This is where the module is looking for the invoice.php file in the templates directory but it is not finding it. Fatal error: main(): Failed opening required 'includes/modules/email_invoice/email_invoice.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/<web_url>/httpdocs/catalog/checkout_process.php on line 231 The above highlighted in red is the incorrect location. Why would it be pointing to that location?? the email_invoice folder doesn't exist... -gabbadude Quote Link to comment Share on other sites More sharing options...
Guest Posted May 5, 2005 Share Posted May 5, 2005 read this on absolute paths: copy and paste link to your browser, http://www.ibdhost.com/help/path/ you may be recieving same error i was, until i got absolute path correct in configure.php -Ron Quote Link to comment Share on other sites More sharing options...
gabbadude Posted May 5, 2005 Share Posted May 5, 2005 read this on absolute paths: copy and paste link to your browser, http://www.ibdhost.com/help/path/ you may be recieving same error i was, until i got absolute path correct in configure.php -Ron <{POST_SNAPBACK}> I fixed my problem. I removed the email_invoice/ in the configure.php file and it worked fine. I have found though that since I put the mod in whenever I click on the 'confirm order' button, the cart is not being reset!!! Can anyone add some info on this? -gabbadude Quote Link to comment Share on other sites More sharing options...
Guest Posted May 5, 2005 Share Posted May 5, 2005 remove code from configure.php that was told to add by mod; this will correct your error, or follow instructions i gave you on cofiguring absolute path in configure.php. Quote Link to comment Share on other sites More sharing options...
gabbadude Posted May 5, 2005 Share Posted May 5, 2005 (edited) remove code from configure.php that was told to add by mod;this will correct your error, or follow instructions i gave you on cofiguring absolute path in configure.php. <{POST_SNAPBACK}> Thanks but why would removing the absolute path fix the problem with the cart not being reset?? I mentioned in the previous post that I had solved the location problem! -gabbadude Edited May 5, 2005 by gabbadude Quote Link to comment Share on other sites More sharing options...
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.