Jump to content
PopTheTop

Fancier Invoice & Packingslip v1.0

Recommended Posts

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 by newmeat

Share this post


Link to post
Share on other sites

Just wanting to know which files contain the links that need changing in the previous post......anyone?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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?????

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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.


The Coopco Underwear Shop

 

If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

Share this post


Link to post
Share on other sites
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

There is a fix earlier in this thread.


The Coopco Underwear Shop

 

If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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']))) {?>

Share this post


Link to post
Share on other sites
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?


The Coopco Underwear Shop

 

If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

Share this post


Link to post
Share on other sites
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?


The Coopco Underwear Shop

 

If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

Share this post


Link to post
Share on other sites

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

 

Invoice.JPG

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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


The Coopco Underwear Shop

 

If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

Share this post


Link to post
Share on other sites

does any one know where i can remove the invoice number, on the invoice?

I just what to insert mine.

 

Thanks

Share this post


Link to post
Share on other sites
Yes

Then recheck the edits for your configure.php files, particularly the absolute paths.


The Coopco Underwear Shop

 

If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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?


The Coopco Underwear Shop

 

If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×