Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Fancier Invoice & Packingslip v1.0


1469 replies to this topic

#1441 imop

  • Community Member
  • 292 posts
  • Real Name:Boriss
  • Gender:Male
  • Location:Latvia

Posted 17 June 2010, 18:56

View Postcherubrock74, on 17 June 2010, 18:22, said:

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!

#1442 cherubrock74

  • Community Member
  • 100 posts
  • Real Name:andrew

Posted 17 June 2010, 20:18

View Postimop, on 17 June 2010, 18:56, said:

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

#1443 imop

  • Community Member
  • 292 posts
  • Real Name:Boriss
  • Gender:Male
  • Location:Latvia

Posted 21 June 2010, 09:16

Actually the setting are ok!

check your installation!

#1444 NK595

  • Community Member
  • 5 posts
  • Real Name:NK

Posted 07 July 2010, 00:38

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.

#1445 imop

  • Community Member
  • 292 posts
  • Real Name:Boriss
  • Gender:Male
  • Location:Latvia

Posted 09 July 2010, 13:27

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

;)

#1446 cherubrock74

  • Community Member
  • 100 posts
  • Real Name:andrew

Posted 16 July 2010, 14:34

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.

#1447 Stealth1

  • Community Member
  • 334 posts
  • Real Name:Chris

Posted 09 August 2010, 07:04

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://forums.oscommerce.com/topic/362522-fatal-error-using-this-when-not-in-object-context-in-storeaccount-history-infophp-on-line-243/page__p__1525554__fromsearch__1&#entry1525554

#1448 Kinrud

  • Community Member
  • 1 posts
  • Real Name:Juan Fourie

Posted 29 September 2010, 15:19

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

#1449 mirage101

  • Community Member
  • 36 posts
  • Real Name:Ivan Filipov

Posted 07 October 2010, 11:06

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.

#1450 adt.albert

  • Community Member
  • 1 posts
  • Real Name:Albert

Posted 31 October 2010, 02:39

(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

#1451 emilesteenkamp

  • Community Member
  • 83 posts
  • Real Name:emile steenkamp
  • Gender:Male

Posted 06 November 2010, 12:55

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:
[img]http://i678.photobucket.com/albums/vv147/emilesteenkamp/email.png[/img]

view invoice page on website:
[img]http://i678.photobucket.com/albums/vv147/emilesteenkamp/site1.png[/img]

click on print invoice:
[img]http://i678.photobucket.com/albums/vv147/emilesteenkamp/site2.png[/img]

invoice view on admin side:
[img]http://i678.photobucket.com/albums/vv147/emilesteenkamp/admininvoice.png[/img]
No outside links in signature allowed. See forum rules please.

#1452 emilesteenkamp

  • Community Member
  • 83 posts
  • Real Name:emile steenkamp
  • Gender:Male

Posted 07 November 2010, 16:15

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.
No outside links in signature allowed. See forum rules please.

#1453 doxman

  • Community Member
  • 6 posts
  • Real Name:Herman De Meulder

Posted 11 March 2011, 13:44

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?

#1454 doxman

  • Community Member
  • 6 posts
  • Real Name:Herman De Meulder

Posted 11 March 2011, 15:14

View Postdoxman, on 11 March 2011, 13:44, said:

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?
Hi guys, please consider this SOLVED. Took a long DEEEEEEEEEEP breath, and it appeared to be a wrong definition in /public_html/catalog/includes/local:
define('DIR_FS_ADMIN', '/home/mydomain/public_html/osc/admin/')

#1455 ismaiel_c

  • Community Member
  • 22 posts
  • Real Name:Ismaiel

Posted 12 March 2011, 14:18

Hey Everyone

I have installed this contribution but i am having some problems with the invoice.php and packingslip.php

Here is the picture of the problem i am having

http://afcfooduk.co.uk/invoice.jpg


If someone could help me resolve the problem I would appreciate it




Thank's

Izzy[img]http://afcfooduk.co.uk/invoice.jpg[/img]

Edited by ismaiel_c, 12 March 2011, 14:19.


#1456 Zahoor

  • Community Member
  • 23 posts
  • Real Name:ZA
  • Gender:Male
  • Location:Norway

Posted 16 March 2011, 14:32

View Postismaiel_c, on 12 March 2011, 14:18, said:

Hey Everyone

I have installed this contribution but i am having some problems with the invoice.php and packingslip.php

Here is the picture of the problem i am having

http://afcfooduk.co.uk/invoice.jpg

If someone could help me resolve the problem I would appreciate it


Thank's

Izzy[img]http://afcfooduk.co.uk/invoice.jpg[/img]

It seems to me that you are missing the language definations in languages/english/invoice.php

#1457 Zahoor

  • Community Member
  • 23 posts
  • Real Name:ZA
  • Gender:Male
  • Location:Norway

Posted 16 March 2011, 14:35

I would like to know where/how this contribution is calling calling tep_mail function. I need to change it so that it I can call another e-mail function? Could please some one point me in that direction?

#1458 musashi79uk

  • Community Member
  • 35 posts
  • Real Name:Carl Fox

Posted 15 June 2011, 11:20

I have installed this contribution and everything is working fine apart from 1 thing:-
When a customer views their order on the website and click on the Print Order button, they get the following error:-

Quote

Fatal error: Using $this when not in object context in /home/thinkel2/public_html/print_my_invoice.php on line 198

It is a white page with customer address etc but it shops where customer's card details should be.

The line that is causing the problem is:-

Quote

<span class="order_infobox_heading_INVOICE">&nbsp;<b><?php echo ENTRY_PAYMENT_CC_NUMBER; ?></b>&nbsp;<?php echo $this->cc_card_number_less_middle_digits; ?></td>

I have changed the $this->cc_card_number_less_middle_digits; to $order->cc_card_number_less_middle_digits;

No error comes up now but all the pop up displays is the whole website with nothing where the invoice should be - the white space is just blank.

Does anyone know what the problem is with this?

Thanks

Carl

#1459 offie

  • Community Member
  • 204 posts
  • Real Name:Michael
  • Gender:Male
  • Location:Lancashire, England

Posted 16 June 2011, 11:29

View Postaspenshops, on 23 May 2006, 07:34, said:

This looks very much like a similar problem I had returning from the PayPal payment page. The error message you have shows /home/YOUR_DOMAIN/public_html/catalog/admin/.....etc. I think your problem is that YOUR-DOMAIN should be reflect your store domain. Depending on the type web server configuration you have the part that says /public_html/ might also be wrong.

In my case, the problem was in the /catalog/admin/includes/local/configure.php file. Check yours.
Find // Folder Definitions
If there is an entry that reads:
define('DIR_FS_ADMIN', '/home/YOUR_DOMAIN/public_html/catalog/admin/'); // absolute path required
then you need to edit the path. (this is covered rather loosely in Step 6 of the install.htm file which is part of the version 6.1 download.)

Now here's the trick. "YOUR_DOMAIN" here is not your website domain i.e. www.myshop.com. It's the Database username as listed here: /catalog/admin/includes/configuration.php (slightly different filename and in a different folder).

Also, /public_html in my case was actually /www.

To make it easier to determine the the true absolute path to type into the definition for DIR_FS_ADMIN open up the OSCommerce Admin Panel, select "Tools", then "Server Info" and scroll down to the "Environment" section.
Find the entry for SCRIPT_FILENAME and paste that into the definition (without server_info.php at the end - the path should end at /admin/). Be sure to include the final /. Also be sure you are editing the right file. You want to be editing /catalog/admin/includes/local/configure.php

If your DIR_FS_ADMIN was already correct, then I would look around to see if there are any other definitions in the files that say /home/YOUR_DOMAIN/public_html/ and try replacing as above. If you have the means to search text in your files automatically you should be able to spot the problem pretty fast.

Hi, just a bit puzzled, the install file (step 6) says to put the configure file in catalog/includes/local folder and not in the /catalog/admin/includes/local/, which is right?

#1460 offie

  • Community Member
  • 204 posts
  • Real Name:Michael
  • Gender:Male
  • Location:Lancashire, England

Posted 16 June 2011, 11:39

Hi all, I have 2 problems since installing

Problem 1: I have gone through the whole process of buying an item both via paypal and by saying I am going to pay by cheque. On all payment methods I get an error message as soon as I click confirm the order. My screen shows the following message and the url says its accessesing checkout_process.php.

[img]http://affordablemobility.co.uk/store/images/checkout%20error.jpg[/img]

Problem 2: This a print invoice error on the customers side. I am logged in as a customer and I am looking in My Account page.

At the top of the page is my list of recent orders. I click the VIEW button and am presented with a page which looks like an invoice.
At the bottom right is a print invoice link. I click this and get the following error:

[img]http://affordablemobility.co.uk/store/images/print%20error.jpg[/img]

Any ideas please?

You may test this out at www.affordablemobility.co.uk/store.

Thank you

Michael

Edited by offie, 16 June 2011, 11:44.