Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Order email


  • You cannot reply to this topic
9 replies to this topic

#1 vmjarala

  • Community Member
  • 123 posts
  • Real Name:Veronica Polston

Posted 31 January 2012, 01:27

Which file do I modify to change the information that is sent to me when an order is placed?
Thanks

#2 npn2531

  • Community Member
  • 951 posts
  • Real Name:Jase
  • Gender:Not Telling

Posted 31 January 2012, 06:21

catalog/checkout_process.php

Search for 'tep_mail' in that file, and you'll see where the html for the order email is woven into the php.

#3 vmjarala

  • Community Member
  • 123 posts
  • Real Name:Veronica Polston

Posted 01 February 2012, 15:57

Thanks you, Jase!
If I understand correctly, I would need to add "customer['email_address']" to this section:
<code>
if ($order->content_type != 'virtual') {
$email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" .
EMAIL_SEPARATOR . "\n" .
tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n";
}
</code>
OR is there a "$" command for the email address like "$sendto"?

THANKS!

#4 vmjarala

  • Community Member
  • 123 posts
  • Real Name:Veronica Polston

Posted 01 February 2012, 20:18

I mean variable... sorry

#5 vmjarala

  • Community Member
  • 123 posts
  • Real Name:Veronica Polston

Posted 01 February 2012, 21:29

The only variable for email address I am finding is "$order->customer ['email_address']"
I was hoping it would be really straightforwad, and I'm sure it is, but I'm not getting it! One more try, and I'll wait for a genius out there to give me the answer.. :-)
THANKS!

#6 vmjarala

  • Community Member
  • 123 posts
  • Real Name:Veronica Polston

Posted 01 February 2012, 21:32

I have tried an echo command and all kinds of other things. I loose.

#7 germ

  • Community Member
  • 13,589 posts
  • Real Name:Jim
  • Gender:Male
  • Location:USA (GMT-6)

Posted 01 February 2012, 21:49

Well I'm a long ways from being a "genius" but maybe we can figure this out.

The default email look something like the text below.

Just what is it you want to add and where?

 store_name_here
------------------------------------------------------
Order Number: 1
Detailed Invoice: hxxp://store.com/account_history_info.php?order_id=1
Date Ordered: Sunday 30 February, 2011
Products
------------------------------------------------------
1 x Samsung Galaxy Tab (GT-P1000) = $749.99
1 x Hewlett Packard LaserJet 1100Xi (HPLJ1100XI) = $499.99
------------------------------------------------------
Sub-Total: $1,249.98
Flat Rate (Best Way): $5.00
Total: $1,254.98
Delivery Address
------------------------------------------------------
john smythe
123 Anystreet
Helena, AK	123456
United States
Billing Address
------------------------------------------------------
john smythe
123 Anystreet
Helena, AK	123456
United States
Payment Method
------------------------------------------------------
Cash on Delivery

Edited by germ, 01 February 2012, 21:51.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

"Headers already sent" - The definitive help

"Cannot redeclare ..." - How to find/fix it

SSL Implementation Help

Like this post? "Like" it again over there >

#8 vmjarala

  • Community Member
  • 123 posts
  • Real Name:Veronica Polston

Posted 01 February 2012, 21:57

Hi Jim!
Happy Tuesday!

This is what I need

"
Billing Address
------------------------------------------------------
john smythe
123 Anystreet
Helena, AK 123456
United States
EMAIL ADDRESS
"
If it's easier, I could have that email address just anywhere, as long as it is on the email.
FYI, I do not have the "delivery address" anymore. You see, we only sell downloads on this site.

#9 germ

  • Community Member
  • 13,589 posts
  • Real Name:Jim
  • Gender:Male
  • Location:USA (GMT-6)

Posted 01 February 2012, 22:07

Change this code:

  $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
				  EMAIL_SEPARATOR . "\n" .
				  tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n";

To:

  $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
				  EMAIL_SEPARATOR . "\n" .
				  tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n" .
				  $order->customer['email_address'] . "\n\n" ;

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

"Headers already sent" - The definitive help

"Cannot redeclare ..." - How to find/fix it

SSL Implementation Help

Like this post? "Like" it again over there >

#10 vmjarala

  • Community Member
  • 123 posts
  • Real Name:Veronica Polston

Posted 01 February 2012, 22:22

BINGO!!! :-)
I was so close... I was playing with that $order->customer ['email_address'] in different ways and places, trying to echo it, tep it, etc... made errors on my page

I *need* to read more on code.
I really really appreciate your help!! :-)

Have a wonderful day! (both of you who took the time to help)