Forums / General Questions / Change fields in order confirmation emails

Change fields in order confirmation emails

Views: 668

Results 1 to 8 of 8
5 Feb 2013, 4:58 AM
#1
tyankee avatar

tyankee

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

Change fields in order confirmation emails

What file do i have to change to change the order confirmation emails.. i've looked at checkout_process.php but that only displays the text that shows up in the email.. i'd like to add another field from the products table to this email - to place right next to the item's model number.

Website Developer and Search Engine Optimazation Boise Idaho. Details at BoiseWired.com

5 Feb 2013, 5:01 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Change fields in order confirmation emails

order.php class

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 Feb 2013, 7:26 PM
#3
tyankee avatar

tyankee

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

Re: Change fields in order confirmation emails

DrByte:

order.php class

not sure i understand?? i'm guessing in the order.php file - which folder is that in? and what did you mean by 'class'??

Website Developer and Search Engine Optimazation Boise Idaho. Details at BoiseWired.com

5 Feb 2013, 7:29 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,109
Plugin Contributions:
56

Re: Change fields in order confirmation emails

/includes/classes/order.php

5 Feb 2013, 7:49 PM
#5
tyankee avatar

tyankee

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

Re: Change fields in order confirmation emails

lat9:

/includes/classes/order.php

thank you....

Website Developer and Search Engine Optimazation Boise Idaho. Details at BoiseWired.com

5 Feb 2013, 7:52 PM
#6
tyankee avatar

tyankee

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

Re: Change fields in order confirmation emails

tyankee:

thank you....

one more thing as you seem to know you're way around zen pretty good.. in my previous shopping cart software, we received an email confirmation for every order - sent to our admin email address. This email was different than the one the customer received. from what i see so far in Zen, the same email goes to the customer and the admin.. how difficult would it be to send a different email to the admin.. the reason we need this is that we have a different product model number that we send to the dropshipper than the one that shows on the current order confirmation.. i've added the new model number to the products table but that's as far as i got..

Website Developer and Search Engine Optimazation Boise Idaho. Details at BoiseWired.com

6 Feb 2013, 6:09 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Change fields in order confirmation emails

Zen Cart re-sends the "same" email to the admin email address after first appending an "office use only" section to the bottom.

If you want to alter the product model number, you'll need to rewrite the class to extract that information into a separate class variable and build two separate emails all the way through, and finally then send the separate emails to the separate destinations.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

6 Feb 2013, 6:42 AM
#8
tyankee avatar

tyankee

Zen Follower

Join Date:
Apr 2008
Posts:
159
Plugin Contributions:
0

Re: Change fields in order confirmation emails

DrByte:

Zen Cart re-sends the "same" email to the admin email address after first appending an "office use only" section to the bottom.

If you want to alter the product model number, you'll need to rewrite the class to extract that information into a separate class variable and build two separate emails all the way through, and finally then send the separate emails to the separate destinations.

know anyone that could do that for a reasonable price??

Website Developer and Search Engine Optimazation Boise Idaho. Details at BoiseWired.com