Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Edit invoice email


Guest

Recommended Posts

Posted

i want to edit :

 

Invoice that sent via Email only without edit the "payment online form"

 

 

what file i must edit >?

 

help pls (

 

i want to add at the bottom of email(invoice)

 

"goto url htp://blablabla.com/confirm/ to make confirmation when you already pay"

Posted
i want to edit :

 

Invoice that sent via Email only without edit the "payment online form"

what file i must edit >?

 

help pls (

 

i want to add at the bottom of email(invoice)

 

"goto url htp://blablabla.com/confirm/ to make confirmation when you already pay"

 

still waiting

Posted

I think you got no answers cause it's extremely hard to understand what you want to do. It may be the following scenario:

 

You do not want to use a payment processor etc but allow users to use an alternate payment after they get the oder email. If this is the case, just edit the money order module to reflect your text and title changes. If no, sorry, no clue.

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Posted
I think you got no answers cause it's extremely hard to understand what you want to do. It may be the following scenario:

 

You do not want to use a payment processor etc but allow users to use an alternate payment after they get the oder email. If this is the case, just edit the money order module to reflect your text and title changes. If no, sorry, no clue.

 

 

no i mean :

when ppl submit order. and finish the 5 or 4 step procedure they will get email ( invoice email )

thats i mean

 

i want to edit(add) the email

Posted

checkout_process.php is your file then!

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Posted
checkout_process.php is your file then!

 

may i know which part ?

 

and is there any contrib that will make this easier ?

Posted

catalog>checkout_process.php

 

Go to this part and edit to ur heart's content

 

// lets start with the email confirmation
 $email_order = "<img src='http://xxx.com/images/xxx_logo.gif'>" . "\n\n" .
STORE_NAME . "\n" . 
			 EMAIL_SEPARATOR . "\n" . 
			 EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" .
			 EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "\n" .
			 EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n";
 if ($order->info['comments']) {

Posted
catalog>checkout_process.php

 

Go to this part and edit to ur heart's content

 

// lets start with the email confirmation
 $email_order = "<img src='http://xxx.com/images/xxx_logo.gif'>" . "\n\n" .
STORE_NAME . "\n" . 
			 EMAIL_SEPARATOR . "\n" . 
			 EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" .
			 EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "\n" .
			 EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n";
 if ($order->info['comments']) {

this is what i see

 

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Warning: Cannot modify header information - headers already sent by (output started at /home/portal/public_html/store/checkout_process.php:264) in /home/portal/public_html/store/includes/functions/general.php on line 29

 

 

can you tell me how if i want to put this word :

 

"please contact [email protected] ASAP"

 

at my email's invoice

Posted
this is what i see

 

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Warning: Cannot modify header information - headers already sent by (output started at /home/portal/public_html/store/checkout_process.php:264) in /home/portal/public_html/store/includes/functions/general.php on line 29

can you tell me how if i want to put this word :

 

"please contact [email protected] ASAP"

 

at my email's invoice

 

 

still need help

:huh:

Posted
still need help

:huh:

 

now i need help about this

:(( some my problem already solved

 

but this one ?!?!? :(

help pls

Posted
now i need help about this

:(( some my problem already solved

 

but this one ?!?!? :(

help pls

You could go to catalog/includes/english/checkout_process.php

find:

define('TEXT_EMAIL_VIA', 'via');

add right after on new line

define('EMAIL_TEXT_CONTACT', 'Please contact [email protected] ASAP');

then on catalog/order_process.php

 

around line258

find:

  tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

change to


 tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_TEXT_CONTACT);

This should put the text in bold at the end of the e-mail that is sent to them.

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Posted

no, this would put the text instead of your store name as the sender. If you want to concatenate, you need to add it to $email_order. There is many rows added to it so the examples are there.

 

header issue: http://www.oscommerce.info/kb/osCommerce/G...mon_Problems/15

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Posted
no, this would put the text instead of your store name as the sender. If you want to concatenate, you need to add it to $email_order. There is many rows added to it so the examples are there.

 

header issue: http://www.oscommerce.info/kb/osCommerce/G...mon_Problems/15

Even with STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, left in?

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Posted

uhm, actually, I overlooked that ... no, like this it has a parameter too much and would probably throw an error!

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Posted
uhm, actually, I overlooked that ... no, like this it has a parameter too much and would probably throw an error!

and.... ?

 

how ?

Posted
uhm, actually, I overlooked that ... no, like this it has a parameter too much and would probably throw an error!

Hello Monika,

 

Would you have time to post how to add the customers email and telephone number to the email confirmation, I notice you were assisting then you swopped notes with another member and the post was left unresolved?

 

kind regards

Michelle

Posted
Hello Monika,

 

Would you have time to post how to add the customers email and telephone number to the email confirmation, I notice you were assisting then you swopped notes with another member and the post was left unresolved?

 

kind regards

Michelle

Hi Michelle, see my post #5 here:

http://www.oscommerce.com/forums/index.php?sho...=165720&hl=

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Posted

 

 

yes like that

 

but the telephone is not customer's phone number

 

but its more like

 

 

invoice number: xx

blablablabla

 

blablabla

------------------

blablabla

blabalblabla

payment methode : wire transfer

blablablabla

blablablabla

 

Please goto this url http://domain.ext/confirm.php to make confirmation after you made a payment to our local bank

Posted
yes like that

 

but the telephone is not customer's phone number

 

but its more like

invoice number: xx

blablablabla

 

blablabla

------------------

blablabla

blabalblabla

payment methode : wire transfer

blablablabla

blablablabla

 

Please goto this url http://domain.ext/confirm.php to make confirmation after you made a payment to our local bank

I finally figured out how to do this correctly.

this will put the information you want at the foot of the e-mail sent to the customer when they click confirm order.

go to catalog/checkout_process.php

find this code around line 253

  $email_order .= $payment_class->title . "\n\n";
if ($payment_class->email_footer) { 
  $email_order .= $payment_class->email_footer . "\n\n";
}
 }

add right after that

 $email_order .=  EMAIL_SEPARATOR . "\n" . 
  			   EMAIL_TEXT_REPLY . "\n" . 
					   EMAIL_SEPARATOR . "\n";

then go to catalog/includes/languages/english/checkout_process.php

find this code

 define('EMAIL_TEXT_PRODUCTS', 'Products');

and add this right after

define('EMAIL_TEXT_REPLY', 'your message here <a href="mailto:youremailaddress"> your emailaddress</a>more of your message.');

this will bring up bring up the customers e-mail program to send an e-mail to you.

you could replace the mailto link info if you just want them to go to a page on your shop.

For your example above it would be:

define('EMAIL_TEXT_REPLY', 'Please goto this url <a href="http://domain.ext/confirm">http://domain.ext/confirm</a> to make confirmation after you made a payment to our local bank');

Hope this helps.

I have tested this and it works from my shop

My Contributions

 

Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly

Password Protect Admin

"No matter where you go....There you are" - Buccaroo Bonsai

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...