newmeat Posted April 22, 2008 Share Posted April 22, 2008 (edited) Ok I have spent over an hour reading this thread and can't find the basic answers to my problems so hopefully you can help me. 1. When the customer clicks on the print my invoice button they get a 404 error. I know newtech said he had fixed it but I can't find how. I understand its an incorrect path. Which file needs altering? 2. My 'print invoice' for customers doesn't show. WHere is its location defined, I guess it needs changing. 3. My email to the customer contains no images, are the links wrong somewhere? Any help much appreciated......my eyes are crossed I've read so much !!! Edited April 22, 2008 by newmeat Quote Link to comment Share on other sites More sharing options...
newmeat Posted April 23, 2008 Share Posted April 23, 2008 Just wanting to know which files contain the links that need changing in the previous post......anyone? Quote Link to comment Share on other sites More sharing options...
bgc42169 Posted April 24, 2008 Share Posted April 24, 2008 Hi all. I have the Latest Invoice & packing slip working great with the latest Paypal_ipn. Again every thing is working fine but i have installed Order Editor http://www.oscommerce.com/community/contributions,1435 and when modify the order, i want it to email the update invoice when i press the "new order email" button. I tried adding the following code in admin\edit_orders.php at line 146 ############################################# // Notify Customer ? $customer_notified = '0'; if (isset($_POST['notify']) && ($_POST['notify'] == 'on')) { $notify_comments = ''; if (isset($_POST['notify_comments']) && ($_POST['notify_comments'] == 'on')) { $notify_comments = sprintf(EMAIL_TEXT_COMMENTS_UPDATE, $_POST['comments']) . "\n\n"; } // BGC // START HTML Invoice if (EMAIL_INVOICE == 'true') { require(DIR_WS_MODULES . EMAIL_INVOICE_DIR . FILENAME_EMAIL_INVOICE); } else { // END HTML Invoice $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . (int)$oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . (int)$oID, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]) . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE2); tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); //BGC // START HTML Invoice } // END HTML Invoice $customer_notified = '1'; ########################################## and at Line number 525 ########################################## //Build the email // BGC // START HTML Invoice if (EMAIL_INVOICE == 'true') { require(DIR_WS_MODULES . EMAIL_INVOICE_DIR . FILENAME_EMAIL_INVOICE); } else { // END HTML Invoice $email_order = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . (int)$oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . (int)$oID, 'SSL') . "\n" . EMAIL_TEXT_DATE_MODIFIED . ' ' . strftime(DATE_FORMAT_LONG) . "\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" . $order->delivery['name'] . "\n"; if ($order->delivery['company']) { $email_order .= $order->delivery['company'] . "\n"; } $email_order .= $order->delivery['street_address'] . "\n"; if ($order->delivery['suburb']) { $email_order .= $order->delivery['suburb'] . "\n"; } $email_order .= $order->customer['city'] . "\n"; if ($order->delivery['state']) { $email_order .= $order->delivery['state'] . "\n"; } $email_order .= $order->customer['postcode'] . "\n" . $order->delivery['country'] . "\n"; } $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . $order->billing['name'] . "\n"; if ($order->billing['company']) { $email_order .= $order->billing['company'] . "\n"; } $email_order .= $order->billing['street_address'] . "\n"; if ($order->billing['suburb']) { $email_order .= $order->billing['suburb'] . "\n"; } $email_order .= $order->customer['city'] . "\n"; if ($order->billing['state']) { $email_order .= $order->billing['state'] . "\n"; } $email_order .= $order->customer['postcode'] . "\n" . $order->billing['country'] . "\n\n"; $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" . EMAIL_SEPARATOR . "\n"; $email_order .= $order->info['payment_method'] . "\n\n"; // if ( ($order->info['payment_method'] == ORDER_EDITOR_SEND_INFO_PAYMENT_METHOD) && (EMAIL_TEXT_PAYMENT_INFO) ) { // $email_order .= EMAIL_TEXT_PAYMENT_INFO . "\n\n"; // } //I'm not entirely sure what the purpose of this is so it is being shelved for now if (EMAIL_TEXT_FOOTER) { $email_order .= EMAIL_TEXT_FOOTER . "\n\n"; } //code for plain text emails which changes the € sign to EUR, otherwise the email will show ? instead of € $email_order = str_replace("€","EUR",$email_order); $email_order = str_replace(" "," ",$email_order); //code which replaces the <br> tags within EMAIL_TEXT_PAYMENT_INFO and EMAIL_TEXT_FOOTER with the proper \n $email_order = str_replace("<br>","\n",$email_order); //send the email to the customer 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 as necessary if (SEND_EXTRA_ORDER_EMAILS_TO != '') { tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } //BGC // START HTML Invoice } // END HTML Invoice At this moment it still sends the boring text updated email. I thought i was using the same procedure as in Fancy Invoices in Email Invoice options. Please let me know what i am doing wrong or what i am missing. Bruce Quote Link to comment Share on other sites More sharing options...
newmeat Posted April 24, 2008 Share Posted April 24, 2008 Ok I have spent over an hour reading this thread and can't find the basic answers to my problems so hopefully you can help me. 1. When the customer clicks on the print my invoice button they get a 404 error. I know newtech said he had fixed it but I can't find how. I understand its an incorrect path. Which file needs altering? 2. My 'print invoice' for customers doesn't show. WHere is its location defined, I guess it needs changing. 3. My email to the customer contains no images, are the links wrong somewhere? Any help much appreciated......my eyes are crossed I've read so much !!! Right have solved 2 of the 3 No 3 is really bugging me.....I get no images in the customers email. Having looked at the source code all image ref are <img src="http://tartanmarine.co.uk/tartanmarine.co.uk/store/images/pixel_trans.gif" why is it repeating tartanmarine.co.uk twice??? I have checked the config file and http server and ws-catalog are right. Any ideas????? Quote Link to comment Share on other sites More sharing options...
jfkafka Posted April 30, 2008 Share Posted April 30, 2008 Right have solved 2 of the 3 No 3 is really bugging me.....I get no images in the customers email. Having looked at the source code all image ref are <img src="http://tartanmarine.co.uk/tartanmarine.co.uk/store/images/pixel_trans.gif" why is it repeating tartanmarine.co.uk twice??? I have checked the config file and http server and ws-catalog are right. Any ideas????? Just a shot in the dark. I had a similar problem. In my case, it was in my config path for dir ws catalog. When I replaced the incorrect full path for a "/", it stopped stuttering. Now if I can get rid of the lisp... L8r, jk Quote Link to comment Share on other sites More sharing options...
sinryder Posted May 1, 2008 Share Posted May 1, 2008 hey guys i have installed this contribution on oscmmerce rc2 site and its not working properly with paypal . It works fine when an order is placed with credit card like the proper fancier invoice is sent to customers email . but it doesnt send the fancier invoice when order is placed by PayPal Website Payments Standard contribution. its the payment option that came with osc rc2.. Only plain invoice is sent to customers emails any help is greatly apprecaited thankyou Quote Link to comment Share on other sites More sharing options...
mankomal Posted May 4, 2008 Share Posted May 4, 2008 hi, after adding this module i have got this error and web page is not opening: Warning: main(includes/languages/english/FILENAME_DEFAULT): failed to open stream: No such file or directory in /home/snmart/public_html/catalog/index.php on line 33 Warning: main(includes/languages/english/FILENAME_DEFAULT): failed to open stream: No such file or directory in /home/snmart/public_html/catalog/index.php on line 33 Warning: main(includes/languages/english/FILENAME_DEFAULT): failed to open stream: No such file or directory in /home/snmart/public_html/catalog/index.php on line 33 Fatal error: main(): Failed opening required 'includes/languages/english/FILENAME_DEFAULT' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/snmart/public_html/catalog/index.php on line 33 Unfortunately i have taken no BACKUP this is first time sucks :'( someone please help thanks in advance Quote Link to comment Share on other sites More sharing options...
Guest Posted May 4, 2008 Share Posted May 4, 2008 hi, after adding this module i have got this error and web page is not opening:Warning: main(includes/languages/english/FILENAME_DEFAULT): failed to open stream: No such file or directory in /home/snmart/public_html/catalog/index.php on line 33 Warning: main(includes/languages/english/FILENAME_DEFAULT): failed to open stream: No such file or directory in /home/snmart/public_html/catalog/index.php on line 33 Warning: main(includes/languages/english/FILENAME_DEFAULT): failed to open stream: No such file or directory in /home/snmart/public_html/catalog/index.php on line 33 Fatal error: main(): Failed opening required 'includes/languages/english/FILENAME_DEFAULT' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/snmart/public_html/catalog/index.php on line 33 Unfortunately i have taken no BACKUP this is first time sucks :'( someone please help thanks in advance require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT); probably you do not have your default language defined properly and should not be related to this contrib. Quote Link to comment Share on other sites More sharing options...
Guest Posted May 4, 2008 Share Posted May 4, 2008 hey guys i have installed this contribution on oscmmerce rc2 site and its not working properly with paypal . It works fine when an order is placed with credit card like the proper fancier invoice is sent to customers email . but it doesnt send the fancier invoice when order is placed by PayPal Website Payments Standard contribution. its the payment option that came with osc rc2.. Only plain invoice is sent to customers emailsany help is greatly apprecaited thankyou There is a fix earlier in this thread. Quote Link to comment Share on other sites More sharing options...
mankomal Posted May 5, 2008 Share Posted May 5, 2008 require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT); probably you do not have your default language defined properly and should not be related to this contrib. hi, i dont understand you, everything on the website was working fine but when i added this the problem started ... can you tell me how to define default language regards Quote Link to comment Share on other sites More sharing options...
pablomontanero Posted May 5, 2008 Share Posted May 5, 2008 Hi I installed this contribution and it successfully shows the fancier invoice in admin, but in the email confirmation, the order totals are missing (shipping, subtotals...). Can anybody help me? Cheers Richard Quote Link to comment Share on other sites More sharing options...
KJexotics Posted May 10, 2008 Share Posted May 10, 2008 this was looking good but then i hit this problem ?? http://kjexotics.co.uk/ Help please :( Quote Link to comment Share on other sites More sharing options...
KJexotics Posted May 10, 2008 Share Posted May 10, 2008 Think it has somthing to do with this :S <?php if (isset($HTTP_GET_VARS['manufacturers_id'])) { ?><title><?php echo $manufacturers_name['manufacturers_name']; ?></title><meta name="description" content="<?php echo $manufacturers_name['manufacturers_name']; ?>"><meta name="keywords" content="<?php echo $manufacturers_name['manufacturers_name']; ?>"><?php}if ((basename($PHP_SELF) == FILENAME_DEFAULT) and (!isset($_GET['cPath']))) {if ((basename($PHP_SELF) == FILENAME_DEFAULT) and (!isset($HTTP_GET_VARS['manufacturers_id']))) {?> Quote Link to comment Share on other sites More sharing options...
Guest Posted May 11, 2008 Share Posted May 11, 2008 hi, i dont understand you, everything on the website was working fine but when i added this the problem started ...can you tell me how to define default language regards What is your default language? Did you delete any langauges? Quote Link to comment Share on other sites More sharing options...
Guest Posted May 11, 2008 Share Posted May 11, 2008 Think it has somthing to do with this :S <?php if (isset($HTTP_GET_VARS['manufacturers_id'])) { ?><title><?php echo $manufacturers_name['manufacturers_name']; ?></title><meta name="description" content="<?php echo $manufacturers_name['manufacturers_name']; ?>"><meta name="keywords" content="<?php echo $manufacturers_name['manufacturers_name']; ?>"><?php}if ((basename($PHP_SELF) == FILENAME_DEFAULT) and (!isset($_GET['cPath']))) {if ((basename($PHP_SELF) == FILENAME_DEFAULT) and (!isset($HTTP_GET_VARS['manufacturers_id']))) {?> What is the problem exactly? Quote Link to comment Share on other sites More sharing options...
Boschett Posted May 22, 2008 Share Posted May 22, 2008 Well I must have missed something significant. I have several other contributions so I was not able to just upload the files. I will search this thread to see if I can find anything, but the 65 pages will take some time. My problem is that I hardly get the full revised invoice layout. It mostly looks like the original. I have attached a copy. If anyone knows what I missed please let me know. Many thanks, Keith Quote Link to comment Share on other sites More sharing options...
Boschett Posted May 22, 2008 Share Posted May 22, 2008 Getting some things fixed. You may disregard. Quote Link to comment Share on other sites More sharing options...
Boschett Posted May 22, 2008 Share Posted May 22, 2008 OK, Does anyone know how to make the "Payment Method" field wider so that more text is printed? Quote Link to comment Share on other sites More sharing options...
atsoc Posted May 24, 2008 Share Posted May 24, 2008 Hello, just install this grate contrib. From the admin side all works ok. But the clients don't receive html invoices. When i enable HTML E-mails, at the check out procidure i get this: 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 /home/sportkl1/public_html/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/local/php52/pear') in /home/sportkl1/public_html/includes/modules/email_invoice/email_invoice.php on line 30 Any ideas Quote Link to comment Share on other sites More sharing options...
Guest Posted May 24, 2008 Share Posted May 24, 2008 Hello,just install this grate contrib. From the admin side all works ok. But the clients don't receive html invoices. When i enable HTML E-mails, at the check out procidure i get this: 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 /home/sportkl1/public_html/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/local/php52/pear') in /home/sportkl1/public_html/includes/modules/email_invoice/email_invoice.php on line 30 Any ideas Did you upload includes/modules/email_invoice/email_invoice.php Quote Link to comment Share on other sites More sharing options...
atsoc Posted May 24, 2008 Share Posted May 24, 2008 Yes Quote Link to comment Share on other sites More sharing options...
atsoc Posted May 24, 2008 Share Posted May 24, 2008 does any one know where i can remove the invoice number, on the invoice? I just what to insert mine. Thanks Quote Link to comment Share on other sites More sharing options...
Guest Posted May 25, 2008 Share Posted May 25, 2008 Yes Then recheck the edits for your configure.php files, particularly the absolute paths. Quote Link to comment Share on other sites More sharing options...
atsoc Posted May 26, 2008 Share Posted May 26, 2008 Absolutely right Leslie. I didn't have the right absolu path at the configure.php file.Was writen at page 60. Thanks a lot. Do you know where i can completly delete the Invoice # or at least the number that you automaticaly get.(i am not talking about the order number) Thanks again Quote Link to comment Share on other sites More sharing options...
Guest Posted May 26, 2008 Share Posted May 26, 2008 Absolutely right Leslie. I didn't have the right absolu path at the configure.php file.Was writen at page 60. Thanks a lot.Do you know where i can completly delete the Invoice # or at least the number that you automaticaly get.(i am not talking about the order number) Thanks again Not sure what you mean. The # is in the language file, or do you not want Invoice # to not display in the invoice? 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.