Guest Posted May 2, 2010 Share Posted May 2, 2010 Thanks for your help anyway. In the code I posted I don't see anything about shipping, is that normal? What piece of code should display the shipping cost? This code: <?php for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) { echo ' <tr>' . "\n" . ' <td align="right" class="smallText">' . $order->totals[$i]['title'] . '</td>' . "\n" . ' <td align="right" class="smallText">' . $order->totals[$i]['text'] . '</td>' . "\n" . ' </tr>' . "\n"; } ?> but this is the same as in admin or sending to client! Quote Link to comment Share on other sites More sharing options...
Benjjj6 Posted May 2, 2010 Share Posted May 2, 2010 (edited) Also do your config settings look like this : Send HTML or Text Invoices to Customers true Default E-Mailed HTML Invoice Template html_invoice.php E-Mail Transport Method sendmail E-Mail Linefeeds LF Use MIME HTML When Sending Emails true Verify E-Mail Addresses Through DNS false Send E-Mails true Hi Could you post the contents of your catalog/includes/modules/email_invoice/templates/html_invoice.php so that I could compare it with mine? I think the problem must just be in that file. Edited May 2, 2010 by Benjjj6 Quote Link to comment Share on other sites More sharing options...
Guest Posted May 2, 2010 Share Posted May 2, 2010 Hi Could you post the contents of your catalog/includes/modules/email_invoice/templates/html_invoice.php so that I could compare it with mine? I think the problem must just be in that file. Actually i use - box_invoice.php but i have modified it for my own needs so it wont be the same, but it dose not mater the code is the same! but here is my html_invoice.php original that works fine for me, just tested! <?php /* $Id: html_invoice.php,v 6.1 2005/06/05 00:37:30 PopTheTop Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ class objectInfo { // class constructor function objectInfo($object_array) { reset($object_array); while (list($key, $value) = each($object_array)) { $this->$key = tep_db_prepare_input($value); } } } $order2 = new order($oID); ?> <html> <head> <title><?php echo STORE_NAME; ?><?php echo INVOICE_ORDER_CONFIRMATION; ?><?php echo INVOICE_TEXT_NUMBER_SIGN; ?><?php echo date("y"); ?><?php echo INVOICE_TEXT_DASH; ?><?php echo $oID; ?></title> <style type="text/css"> BODY { background: #ffffff; color: #000000; margin: 0px; } A { color: #000000; text-decoration: none; } A:hover { color: #AABBDD; text-decoration: underline; } A.headerNavigation { color: #FFFFFF; } A.headerNavigation:hover { color: #ffffff; } TD.main, P.main { font-family: Verdana, Arial, sans-serif; font-size: 11px; line-height: 1.5; } TD.smallText, SPAN.smallText, P.smallText { font-family: Verdana, Arial, sans-serif; font-size: 10px; } .dataTableContent { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; } .dataTableHeadingRow { background-color: #C9C9C9; } .dataTableHeadingContent { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #ffffff; font-weight: bold; } .dataTableRow { background-color: #F0F1F1; } </style> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF"> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td align="left"><?php echo '<img src="' . INVOICE_IMAGE . '" border="0" alt="' . INVOICE_IMAGE_ALT_TEXT . '" width="' . INVOICE_IMAGE_WIDTH . '" height="' . INVOICE_IMAGE_HEIGHT . '" hspace="10">'; ?></td> <TD ALIGN="right" VALIGN="top" NOWRAP><FONT FACE="Verdana" SIZE="2" COLOR="#006699"><strong><?php echo INVOICE_ORDER_CONFIRMATION; ?> <?php echo INVOICE_TEXT_NUMBER_SIGN; ?> <?php echo date("y"); ?><?php echo INVOICE_TEXT_DASH; ?><?php echo $oID; ?><BR> <?php echo $date; ?></strong></font><br> <br> <span class="pageHeadingSM"><FONT FACE="Verdana" SIZE="1" COLOR="#006699"><strong><?php echo nl2br(STORE_NAME_ADDRESS); ?></strong></font></span></TD> </tr> <tr> <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <TD><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td colspan="4"><table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td width="10%"><hr size="2"></td> <td align="center" class="pageHeading" NOWRAP><em><b><?php echo INVOICE_TEXT_INVOICE; ?></b></em></td> <td width="100%"><hr size="2"></td> </tr> </table></td> </tr> <tr> <td colspan="4"><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="100" height="5" alt=""></td> </tr> <tr> <td width="3"></td> <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="11"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_01.gif" width="11" height="16" alt=""></td> <td background="<?php echo $ei_image_dir; ?>borders/maingrey_02.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_02.gif" width="24" height="16" alt="" ></td> <td width="19"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_03.gif" width="19" height="16" alt=""></td> </tr> <tr> <td background="<?php echo $ei_image_dir; ?>borders/maingrey_04.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_04.gif" width="11" height="21" alt=""></td> <td align="center" bgcolor="#F2F2F2"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="main"> <tr> <td align="left" valign="top"><b><?php echo ENTRY_SHIP_TO; ?></b></td> </tr> <tr> <td> <img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="5" alt=""></td> </tr> <tr> <td NOWRAP> <?php echo tep_address_format($order2->delivery['format_id'], $order2->delivery, 1, '', '<br> '); ?></td> </tr> <tr> <td> <img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="10" alt=""></td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="7" alt=""></td> </tr> </table></td> <td background="<?php echo $ei_image_dir; ?>borders/maingrey_06.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_06.gif" width="19" height="21" alt=""></td> </tr> <tr> <td><img src="<?php echo $ei_image_dir; ?>borders/maingrey_07.gif" width="11" height="18" alt=""></td> <td background="<?php echo $ei_image_dir; ?>borders/maingrey_08.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_08.gif" width="24" height="18" alt=""></td> <td><img src="<?php echo $ei_image_dir; ?>borders/maingrey_09.gif" width="19" height="18" alt=""></td> </tr> </table></td> <td width="45"></td> <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="11"><img src="<?php echo $ei_image_dir; ?>borders/mainwhite_01.gif" width="11" height="16" alt=""></td> <td background="<?php echo $ei_image_dir; ?>borders/mainwhite_02.gif"><img src="<?php echo $ei_image_dir; ?>borders/mainwhite_02.gif" width="24" height="16" alt=""></td> <td width="19"><img src="<?php echo $ei_image_dir; ?>borders/mainwhite_03.gif" width="19" height="16" alt=""></td> </tr> <tr> <td background="<?php echo $ei_image_dir; ?>borders/mainwhite_04.gif"><img src="<?php echo $ei_image_dir; ?>borders/mainwhite_04.gif" width="11" height="21" alt=""></td> <td align="center" bgcolor="#FFFFFF"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="main"> <tr> <td align="left" valign="top"><b><?php echo ENTRY_SOLD_TO; ?></b></td> </tr> <tr> <td> <img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="5" alt=""></td> </tr> <tr> <td NOWRAP> <?php echo tep_address_format($order2->customer['format_id'], $order2->customer, 1, '', '<br> '); ?></td> </tr> <tr> <td> <img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="10" alt=""></td> </tr> <tr> <td NOWRAP> <?php echo $order2->customer['telephone']; ?></td> </tr> <tr> <td NOWRAP> <?php echo $order2->customer['email_address']; ?></td> </tr> <tr> <td><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="7" alt=""></td> </tr> </table></td> <td background="<?php echo $ei_image_dir; ?>borders/mainwhite_06.gif"><img src="<?php echo $ei_image_dir; ?>borders/mainwhite_06.gif" width="19" height="21" alt=""></td> </tr> <tr> <td><img src="<?php echo $ei_image_dir; ?>borders/mainwhite_07.gif" width="11" height="18" alt=""></td> <td background="<?php echo $ei_image_dir; ?>borders/mainwhite_08.gif"><img src="<?php echo $ei_image_dir; ?>borders/mainwhite_08.gif" width="24" height="18" alt=""></td> <td><img src="<?php echo $ei_image_dir; ?>borders/mainwhite_09.gif" width="19" height="18" alt=""></td> </tr> </table></td> </tr> </table></TD> </tr> <tr> <TD COLSPAN="2"><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="100" height="15" alt=""></td> </tr> <tr> <TD COLSPAN="2"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="9"></td> <td><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="11"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_01.gif" width="11" height="16" alt=""></td> <td background="<?php echo $ei_image_dir; ?>borders/maingrey_02.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_02.gif" width="24" height="16" alt="" ></td> <td width="19"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_03.gif" width="19" height="16" alt=""></td> </tr> <tr> <td background="<?php echo $ei_image_dir; ?>borders/maingrey_04.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_04.gif" width="11" height="21" alt=""></td> <td align="center" bgcolor="#F2F2F2"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="main"> <tr> <td width="50%" NOWRAP> <b><?php echo INVOICE_TEXT_ORDER; ?> <?php echo INVOICE_TEXT_NUMBER_SIGN; ?><?php echo INVOICE_TEXT_COLON; ?></b> <?php echo tep_db_input($oID); ?></td> <?php if (tep_not_null($order2->info['cc_number'])) { $this->cc_card_number_less_middle_digits = substr($order2->info['cc_number'], 0, 4) . str_repeat('x', (strlen($order2->info['cc_number']) - 8)) . substr($order2->info['cc_number'], -4); ?> <td width="50%" NOWRAP> <b><?php echo ENTRY_PAYMENT_METHOD; ?></b> <?php echo $order2->info['payment_method']; ?> (<?php echo $order2->info['cc_type']; ?>)<br> <img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="100%" height="6" alt=""><br> <b><?php echo ENTRY_PAYMENT_CC_NUMBER; ?></b> <?php echo $this->cc_card_number_less_middle_digits; ?></td> <?php } else { ?> <td width="50%" NOWRAP> <b><?php echo ENTRY_PAYMENT_METHOD; ?></b> <?php echo $order2->info['payment_method']; ?></td> <?php } ?> </tr> <tr> <td><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="7" alt=""></td> </tr> </table></td> <td background="<?php echo $ei_image_dir; ?>borders/maingrey_06.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_06.gif" width="19" height="21" alt=""></td> </tr> <tr> <td><img src="<?php echo $ei_image_dir; ?>borders/maingrey_07.gif" width="11" height="18" alt=""></td> <td background="<?php echo $ei_image_dir; ?>borders/maingrey_08.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_08.gif" width="24" height="18" alt=""></td> <td><img src="<?php echo $ei_image_dir; ?>borders/maingrey_09.gif" width="19" height="18" alt=""></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <TD COLSPAN="2"><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="15" alt=""></td> </tr> <tr> <TD COLSPAN="2"><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="10" alt=""></td> </tr> <tr> <TD COLSPAN="2"><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="dataTableHeadingRow"> <td class="dataTableHeadingContent" colspan="2"><?php echo TABLE_HEADING_PRODUCTS; ?></td> <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_PRODUCTS_MODEL; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TAX; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_PRICE_EXCLUDING_TAX; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_PRICE_INCLUDING_TAX; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TOTAL_EXCLUDING_TAX; ?></td> <td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_TOTAL_INCLUDING_TAX; ?></td> </tr> <?php for ($i = 0, $n = sizeof($order2->products); $i < $n; $i++) { echo ' <tr class="dataTableRow">' . "\n" . ' <td class="dataTableContent" valign="top" align="right">' . $order2->products[$i]['qty'] . ' x</td>' . "\n" . ' <td class="dataTableContent" valign="top">' . $order2->products[$i]['name']; if (isset($order2->products[$i]['attributes']) && (($k = sizeof($order2->products[$i]['attributes'])) > 0)) { for ($j = 0; $j < $k; $j++) { echo '<br><nobr><small> <i> - ' . $order2->products[$i]['attributes'][$j]['option'] . ': ' . $order2->products[$i]['attributes'][$j]['value']; if ($order2->products[$i]['attributes'][$j]['price'] != '0') echo ' (' . $order2->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order2->products[$i]['attributes'][$j]['price'] * $order2->products[$i]['qty'], true, $order2->info['currency'], $order2->info['currency_value']) . ')'; echo '</i></small></nobr>'; } } echo ' </td>' . "\n" . ' <td class="dataTableContent" valign="top">' . $order2->products[$i]['model'] . '</td>' . "\n"; echo ' <td class="dataTableContent" align="right" valign="top">' . tep_display_tax_value($order2->products[$i]['tax']) . '%</td>' . "\n" . ' <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($order2->products[$i]['final_price'], true, $order2->info['currency'], $order2->info['currency_value']) . '</b></td>' . "\n" . ' <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format(tep_add_tax($order2->products[$i]['final_price'], $order2->products[$i]['tax']), true, $order2->info['currency'], $order2->info['currency_value']) . '</b></td>' . "\n" . ' <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($order2->products[$i]['final_price'] * $order2->products[$i]['qty'], true, $order2->info['currency'], $order2->info['currency_value']) . '</b></td>' . "\n" . ' <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format(tep_add_tax($order2->products[$i]['final_price'], $order2->products[$i]['tax']) * $order2->products[$i]['qty'], true, $order2->info['currency'], $order2->info['currency_value']) . '</b></td>' . "\n"; echo ' </tr>' . "\n"; } ?> <tr> <td align="right" colspan="8"><table border="0" cellspacing="0" cellpadding="2"> <?php for ($i = 0, $n = sizeof($order2->totals); $i < $n; $i++) { echo ' <tr>' . "\n" . ' <td align="right" class="smallText">' . $order2->totals[$i]['title'] . '</td>' . "\n" . ' <td align="right" class="smallText">' . $order2->totals[$i]['text'] . '</td>' . "\n" . ' </tr>' . "\n"; } ?> </table></td> </tr> </table></td> </tr> </table> <?php $order2s_status_history_query = tep_db_query("select * from " . TABLE_ORDERS_STATUS_HISTORY . " where orders_id = '" . tep_db_input($oID) . "' order by date_added"); if (tep_db_num_rows($order2s_status_history_query)) { $has_comments = false; ?> <br> <br> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="9"></td> <td><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="11"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_01.gif" width="11" height="16" alt=""></td> <td background="<?php echo $ei_image_dir; ?>borders/maingrey_02.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_02.gif" width="24" height="16" alt="" ></td> <td width="19"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_03.gif" width="19" height="16" alt=""></td> </tr> <tr> <td background="<?php echo $ei_image_dir; ?>borders/maingrey_04.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_04.gif" width="11" height="21" alt=""></td> <td align="center" bgcolor="#F2F2F2"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="main"> <tr> <td width="95%" NOWRAP> <b><?php echo TABLE_HEADING_COMMENTS; ?></b><br> <br></td> </tr> <?php while ($order2s_comments = tep_db_fetch_array($order2s_status_history_query)) { if (tep_not_null($order2s_comments['comments'])) { $has_comments = true; // Not Null = Has Comments if (tep_not_null($order2s_comments['comments'])) { $sInfo = new objectInfo($order2s_comments); ?> <tr> <td align="center" width="95%"><table width="95%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="95%" class="smallText"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="main"> <tr> <td width="150" align="left" valign="top" class="smallText"><strong><u><?php echo TABLE_HEADING_DATE_ADDED; ?></u></strong></td> <td align="left" valign="top" class="smallText"><strong><u><?php echo TABLE_HEADING_COMMENT_LEFT; ?></u></strong></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td align="center" width="95%"><table width="95%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="95%" class="smallText"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="main"> <tr> <td width="150" align="left" valign="top" class="smallText"><?php echo tep_date_short($sInfo->date_added); ?></td> <td align="left" valign="top" class="smallText"><?php echo nl2br(tep_db_output($order2s_comments['comments'])); ?><br> <br></td> </tr> </table></td> </tr> </table></td> </tr> <?php } } } if ($has_comments == false) { ?> <tr> <td align="center" width="95%"><table width="95%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="95%" class="smallText"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="main"> <tr> <td width="100%" align="left" valign="top" class="smallText"><?php echo INVOICE_TEXT_NO_COMMENT; ?></td> </tr> </table></td> </tr> </table></td> </tr> <?php } ?> <tr> <td><img src="<?php echo $ei_image_dir; ?>pixel_trans.gif" width="1" height="7" alt=""></td> </tr> </table></td> <td background="<?php echo $ei_image_dir; ?>borders/maingrey_06.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_06.gif" width="19" height="21" alt=""></td> </tr> <tr> <td><img src="<?php echo $ei_image_dir; ?>borders/maingrey_07.gif" width="11" height="18" alt=""></td> <td background="<?php echo $ei_image_dir; ?>borders/maingrey_08.gif"><img src="<?php echo $ei_image_dir; ?>borders/maingrey_08.gif" width="24" height="18" alt=""></td> <td><img src="<?php echo $ei_image_dir; ?>borders/maingrey_09.gif" width="19" height="18" alt=""></td> </tr> </table></td> </tr> </table> <?php } ?> <br> <CENTER> <span class="smallText"><FONT FACE="Verdana" COLOR="#006699"><strong><?php echo INVOICE_TEXT_THANK_YOU; ?><BR> <?php echo STORE_NAME; ?><BR> <?php echo STORE_URL_ADDRESS; ?></strong></font></span> </CENTER> </body> </html> Quote Link to comment Share on other sites More sharing options...
ericattack Posted May 7, 2010 Share Posted May 7, 2010 (edited) Hi We now use your contri and the orders look very good now. Thank you for this! We have one error. If I login (as a customer) on ouw webshop and I go to the orders it says in the bottom: IMAGE_BUTTON_PRINT_ORDER I Think it should show the button but it doesnt. If I click on it it says: Not Found The requested URL /OUR SITE/FILENAME_PRINT_MY_INVOICE was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. The file is there so thats not the problem. Step 9 has been done carefully. Do you know what is the problem? We reinstalled everything but keep having this prob. We use osc 2.2rc2a. No template. Only stylesheet colors are changed. Edited May 7, 2010 by ericattack Quote Link to comment Share on other sites More sharing options...
Benjjj6 Posted May 14, 2010 Share Posted May 14, 2010 but here is my html_invoice.php original that works fine for me, just tested! Thank you! It did work, however the top border on all the boxes is duplicated breaking the format of the box. When you tested your html_invoice did you find the all the boxes were perfect or was the top border slightly broken? Quote Link to comment Share on other sites More sharing options...
Guest Posted May 14, 2010 Share Posted May 14, 2010 Thank you! It did work, however the top border on all the boxes is duplicated breaking the format of the box. When you tested your html_invoice did you find the all the boxes were perfect or was the top border slightly broken? Actually i have my own design for the invoices, less images only the company logo, all other CSS, and my invoice is is heavy modified so it won`t work for u! But i suggest you to use less images eg. JPG , GIF, PNG etc. use CSS/HTML for your invoice design it means less problems and the invoice will look 99,99% the same in different e-mail clients (outlook, Thunderbird web - Gmail / Yahoo mail / etc.) Quote Link to comment Share on other sites More sharing options...
bobsi18 Posted May 21, 2010 Share Posted May 21, 2010 Hello! I get this error on check out process - checkout_process.php: Warning: require(/home/YOUR_DOMAIN/public_html/catalog/admin/includes/languages/english/invoice.php) [function.require]: failed to open stream: No such file or directory in /var/www/shop/includes/modules/email_invoice/email_invoice.php on line 30 Fatal error: require() [function.require]: Failed opening required '/home/YOUR_DOMAIN/public_html/catalog/admin/includes/languages/english/invoice.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/shop/includes/modules/email_invoice/email_invoice.php on line 30 but i was looking at configure.php for this path - /home/YOUR_DOMAIN/public_html/catalog/admin/ but i have written the path: define('DIR_FS_ADMIN', '/var/www/shop/admin/'); // absolute path required i can`t get it run! How did you fix this? I am having this problem. Quote Link to comment Share on other sites More sharing options...
bobsi18 Posted May 21, 2010 Share Posted May 21, 2010 How did you fix this? I am having this problem. Ok, I figured it out. Had forgotten that there was another configure.php file (in /includes/local) - had to change some settings in there. Quote Link to comment Share on other sites More sharing options...
jhande Posted June 16, 2010 Share Posted June 16, 2010 Please Note: This contribution is not compatible with ANY PayPal IPN payment modules and I do not plan on making it so either. All the PayPal IPN payment modules are still way too buggy and conflict with MANY other contributions. With this contribution, you need to use the stock osC PayPal payment module. What a shame... PayPal IPN was created to fix problems with the original PayPal module. Not to make this contribution compatable with the PayPal update doesn't make sense. So what you are saying is I need to live with payment problems in order to have a nicer looking invoice/packing slip? I tried this contribution back when version 2.0 was the latest, loved the look but couldn't live with the PayPal issues. I was hoping that eventually the two would work together, but I guess not. What a shame! Back to the old boring invoice/packing slip. Maybe some day... Quote - :: Jim :: - - My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 - Link to comment Share on other sites More sharing options...
cherubrock74 Posted June 17, 2010 Share Posted June 17, 2010 Installed the contrib and it looks fine but I need to fix the text on top where the invoice number and date are...right now I am showing it like this: INVOICE_TEXT_INVOICE_NR 163 INVOICE_TEXT_INVOICE_DATE06/17/2010 can someone point me to where I can fix this? Quote Link to comment Share on other sites More sharing options...
Guest Posted June 17, 2010 Share Posted June 17, 2010 Installed the contrib and it looks fine but I need to fix the text on top where the invoice number and date are...right now I am showing it like this: INVOICE_TEXT_INVOICE_NR 163 INVOICE_TEXT_INVOICE_DATE06/17/2010 can someone point me to where I can fix this? This is shown in invoice sent to customer or in customers account "Print Invoice"? Quote Link to comment Share on other sites More sharing options...
cherubrock74 Posted June 17, 2010 Share Posted June 17, 2010 This is shown in invoice sent to customer or in customers account "Print Invoice"? It is currently shown in the invoice that opens through the admin panel At the moment I cannot send out the fancy html invoice to customers but invoice and packingslip look ok in the admin panel...customers still get the regular text based email with info about their order I am also trying to receive a copy of the order summary email to my store email address but I cant seem to get that either...but I think that's another problem Just trying to fix one thing at the time Any help please? Quote Link to comment Share on other sites More sharing options...
Guest Posted June 17, 2010 Share Posted June 17, 2010 It is currently shown in the invoice that opens through the admin panel At the moment I cannot send out the fancy html invoice to customers but invoice and packingslip look ok in the admin panel...customers still get the regular text based email with info about their order I am also trying to receive a copy of the order summary email to my store email address but I cant seem to get that either...but I think that's another problem Just trying to fix one thing at the time Any help please? 1) The words: INVOICE_TEXT_INVOICE_NR 163 INVOICE_TEXT_INVOICE_DATE 06/17/2010 add this the code in catalog/admin/includes/languages/english/invoice.php: define('INVOICE_TEXT_INVOICE_NR', 'Number:'); define('INVOICE_TEXT_INVOICE_DATE', 'Invoice date: '); * is u need it also in packing slip add the same code to - catalog/admin/includes/languages/english/packingslip.php ** if u have other languages do the same to them copy/paste the code 2) About the email sending, yes it seems to be a small, but u can fix it: so open find this: catalog/includes/modules/email_invoice/email_invoice.php if (SEND_EXTRA_ORDER_EMAILS_TO != '') { $ei_message->send(STORE_OWNER, SEND_EXTRA_ORDER_EMAILS_TO, $order2->customer['name'], $order2->customer['email_address'], EMAIL_TEXT_SUBJECT . ' ' . $insert_id); replace with this: if (SEND_EXTRA_ORDER_EMAILS_TO != '') { $ei_message->send('', SEND_EXTRA_ORDER_EMAILS_TO, $order2->customer['name'], $order2->customer['email_address'], EMAIL_TEXT_SUBJECT . ' ' . $insert_id); * don`t forget to input the extra e-mail adress in Admin panel for extra e-mail to be sent!!! Hope it helps! Quote Link to comment Share on other sites More sharing options...
cherubrock74 Posted June 17, 2010 Share Posted June 17, 2010 1) The words: INVOICE_TEXT_INVOICE_NR 163 INVOICE_TEXT_INVOICE_DATE 06/17/2010 add this the code in catalog/admin/includes/languages/english/invoice.php: define('INVOICE_TEXT_INVOICE_NR', 'Number:'); define('INVOICE_TEXT_INVOICE_DATE', 'Invoice date: '); * is u need it also in packing slip add the same code to - catalog/admin/includes/languages/english/packingslip.php ** if u have other languages do the same to them copy/paste the code 2) About the email sending, yes it seems to be a small, but u can fix it: so open find this: catalog/includes/modules/email_invoice/email_invoice.php if (SEND_EXTRA_ORDER_EMAILS_TO != '') { $ei_message->send(STORE_OWNER, SEND_EXTRA_ORDER_EMAILS_TO, $order2->customer['name'], $order2->customer['email_address'], EMAIL_TEXT_SUBJECT . ' ' . $insert_id); replace with this: if (SEND_EXTRA_ORDER_EMAILS_TO != '') { $ei_message->send('', SEND_EXTRA_ORDER_EMAILS_TO, $order2->customer['name'], $order2->customer['email_address'], EMAIL_TEXT_SUBJECT . ' ' . $insert_id); * don`t forget to input the extra e-mail adress in Admin panel for extra e-mail to be sent!!! Hope it helps! Hi and thank you for your help :) I was able to fix the text...worked great. I also replaced the code as recommended and I am able to get a copy of the order process email in the extra email address The only thing I cannot seems to work is the format of the email. The order process email is still in text format, not html. Just to understand, customer should receive the same html invoice as the one I can display in my admin panel right? I have set the html option for the email into my admin panel, here are my settings...any idea of what am I doing wrong or where I should check to understand? Title Email Invoice to Customer true Default Email Template File fancy.php Send HTML or Text Invoices to Customers true Default E-Mailed HTML Invoice Template box_invoice.php E-Mail Transport Method sendmail E-Mail Linefeeds LF Use MIME HTML When Sending Emails true Verify E-Mail Addresses Through DNS false Send E-Mails true Quote Link to comment Share on other sites More sharing options...
Guest Posted June 21, 2010 Share Posted June 21, 2010 Actually the setting are ok! check your installation! Quote Link to comment Share on other sites More sharing options...
NK595 Posted July 7, 2010 Share Posted July 7, 2010 I recently added the mod, everything is fine till check out. as I get: Warning: require(/home/content/a/s/p/XXXXXXX/html/catalog/admin/includes/languages/english/invoice.php) [function.require]: failed to open stream: No such file or directory in /home/content/a/s/p/aspecadmin/html/catalog/includes/modules/email_invoice/email_invoice.php on line 30 Fatal error: require() [function.require]: Failed opening required '/home/content/a/s/p/XXXXXXX/html/catalog/admin/includes/languages/english/invoice.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/a/s/p/XXXXXX/html/catalog/includes/modules/email_invoice/email_invoice.php on line 30 or I get a "500 Internal Server Error" page if I use exactly whats in my Admin/Tools/Server info - Document_Root This is my configure.php // Folder Definitions define('DIR_FS_ADMIN', '/home/content/a/s/p/XXXXXX/html/catalog/admin/'); // absolute path required define('EMAIL_INVOICE_DIR', 'email_invoice/'); define('INVOICE_TEMPLATE_DIR', 'templates/'); // Email Invoice File Definitions define('FILENAME_EMAIL_INVOICE', 'email_invoice.php'); define('FILENAME_EMAIL_CACHE_FILE', 'temp_cache.php'); define('FILENAME_ORDERS_INVOICE', 'invoice.php'); I followed the instructions made the necessary changes and I'm attempting to just get the checkout to go through completely but to no avail. I've done everything in the instructions and nothing seems to fix it, I'm at a lose at what to even bother with at this point, I've tried whats in the FAQ and done whats in the instructions, maybe I've missed something somewhere but if so I'm not seeing it at all. Quote Link to comment Share on other sites More sharing options...
Guest Posted July 9, 2010 Share Posted July 9, 2010 define('DIR_FS_ADMIN', '/home/content/a/s/p/XXXXXX/html/catalog/admin/'); // absolute path required change the path to your directory in here: cataloge/includes/local/configure.php ;) Quote Link to comment Share on other sites More sharing options...
cherubrock74 Posted July 16, 2010 Share Posted July 16, 2010 I have installed the contrib and like previously posted I am only able to see the html invoice and packing slip on the admin side. I cannot send html invoices to customers. Does not matter what I set on the admin side they only receive the text based version of the invoice. Can someone tell me which are the files invoiced with sending html email so I will start troubleshooting them one by one? I have been dealing with this issue for a while and I have to solve it somehow. Quote Link to comment Share on other sites More sharing options...
Stealth1 Posted August 9, 2010 Share Posted August 9, 2010 I was wondering, has the problem with tax, shipping etc not being displayed on the emailed invoice been fixed? Also I have run into an error and think it may be related to the fancier invoice. http://www.oscommerce.com/forums/topic/362522-fatal-error-using-this-when-not-in-object-context-in-storeaccount-history-infophp-on-line-243/page__p__1525554__fromsearch__1entry1525554 Quote Link to comment Share on other sites More sharing options...
Kinrud Posted September 29, 2010 Share Posted September 29, 2010 Hi there, i seem to be having weird issues with this module, we installed this on our site a long time ago and never had any problems, however recently we have moved to a new server with slightly different LAMP settings and some of the emails being sent have broken html in them, i have managed to fix a few problems by inserting filters for the php names etc. but i am still getting problems. One such problem is that the Bill to and Ship to columns brake the page quite badly. It seems like it basically escapes or ignores a </td> tag and because of this everything is completely thrown off. It is strange because it only happens with certain orders, and if the email address is removed it seems to work, however if that same email address is used with a different order it could also work. Has anyone had a similar problem to this? Does anyone know what it could be or what i could try to fix it, i am completely out of ideas Quote Link to comment Share on other sites More sharing options...
mirage101 Posted October 7, 2010 Share Posted October 7, 2010 I have two questions about this wonderfull contribution. First when I send email from my store to user for successful checkout I use box_invoice.php for template. I get in wmail in the place with subject information some ????203???-???-??????? and so on. My first question is where is this in code. Is this in title tag or somewhere else, and how to display it proper in Cyrillic. My second question is where I can type translation for box_invoice.php? Thanks for attention. Quote Link to comment Share on other sites More sharing options...
adt.albert Posted October 31, 2010 Share Posted October 31, 2010 (Used a translator from Portuguese to English) "Ingles" Hello, has an annoying bug to solve, who can help me I'll be grateful. When I enter the invoice in the invoice account_history_info.php and click on the button to print the application, the button does not work, does not show the error. the path is FILENAME_PRINT_MY_INVOICE and button line is as follows: [cod] <td><div style="float:left"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, tep_get_all_get_params(array('order_id')), 'SSL') . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a></div><div style=float:right>'; ?><a href="javascript:popupPrintReceipt('<?php echo tep_href_link(FILENAME_PRINT_MY_INVOICE, tep_get_all_get_params(array('order_id')) . 'order_id=' . $HTTP_GET_VARS['order_id'], 'SSL'); ?>')"><?php echo tep_image_button('button_print_order.gif', 'Imprimir esta Página') . '</a>'; ?></div></td> [/cod] In the installation shows a modification of a file that in come with the package "imagemagick.php" Thanks guys already "Português" Olá, tem um erro chato de resolver, quem puder me ajudar eu ficarei gratos. Quando entro na fatura em account_history_info.php na fatura e clico no botão para imprimir o pedido, o botão não funciona, não mostra o erro. o caminho é FILENAME_PRINT_MY_INVOICE e a linha do botão está da seguinte forma: [cod] <td><div style="float:left"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, tep_get_all_get_params(array('order_id')), 'SSL') . '">' . tep_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a></div><div style=float:right>'; ?><a href="javascript:popupPrintReceipt('<?php echo tep_href_link(FILENAME_PRINT_MY_INVOICE, tep_get_all_get_params(array('order_id')) . 'order_id=' . $HTTP_GET_VARS['order_id'], 'SSL'); ?>')"><?php echo tep_image_button('button_print_order.gif', 'Imprimir esta Página') . '</a>'; ?></div></td> [/cod] Na instalação mostra uma modificação de um arquivo que nã vem junto do pacote "imagemagick.php" Desde já Valeu galera Quote Link to comment Share on other sites More sharing options...
emilesteenkamp Posted November 6, 2010 Share Posted November 6, 2010 I'm having a few issues with the install if someone can please help me. I have attached some pics of what the problems are: email invoice sent to clients: view invoice page on website: click on print invoice: invoice view on admin side: Quote No outside links in signature allowed. See forum rules please. Link to comment Share on other sites More sharing options...
emilesteenkamp Posted November 7, 2010 Share Posted November 7, 2010 How do I change the background color of the print my invoice page? It displays the same color as the rest of the website. I just want it the same as the other invoices and packing slips. Quote No outside links in signature allowed. See forum rules please. Link to comment Share on other sites More sharing options...
doxman Posted March 11, 2011 Share Posted March 11, 2011 I have just installed version 6.2 (dated August 6, 2009). When I set the Admin -> Config -> E-mail Options-> Use MIME HTML option to TRUE, this happens when checking out: Warning: require(public_html/osc/admin/includes/languages/english/invoice.php) [function.require]: failed to open stream: No such file or directory in /home/mydomain/public_html/osc/includes/modules/email_invoice/email_invoice.php on line 30 Warning: require(public_html/osc/admin/includes/languages/english/invoice.php) [function.require]: failed to open stream: No such file or directory in /home/mydomain/public_html/osc/includes/modules/email_invoice/email_invoice.php on line 30 Fatal error: require() [function.require]: Failed opening required 'public_html/osc/admin/includes/languages/english/invoice.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mydomain/public_html/osc/includes/modules/email_invoice/email_invoice.php on line 30 Any idea where I should start looking? 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.