Forums / Templates, Stylesheets, Page Layout / How to add content to order confirmation email?

How to add content to order confirmation email?

Locked

Views: 3,533

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
2 Dec 2009, 4:26 AM
#1
ralf_skirr avatar

ralf_skirr

New Zenner

Join Date:
Oct 2009
Location:
Germany
Posts:
33
Plugin Contributions:
0

How to add content to order confirmation email?

Hi, I need to add some additional content to the order confirmation email sent to customer after successful checkout.

I tried adding my new content to
email_template_checkout.html

You can see the changed template here:
http://buck-store.de/email/email_template_checkout.html

But the email remains unchanged.

Where do I have to put the changes?

Thanks
Ralf

2 Dec 2009, 7:06 AM
#2
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: How to add content to order confirmation email?

Hi Ralf, do you have the overrides system in place?

You may have to make the change in your custom template folder?

Cheers,

Scott.

Donation made. Enjoy those donuts! :-)

2 Dec 2009, 8:14 AM
#3
drbyte avatar

drbyte

Sensei

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

Re: How to add content to order confirmation email?

Scott_C:

Hi Ralf, do you have the overrides system in place?

You may have to make the change in your custom template folder?

Cheers,

Scott.

Scott,
There are no "template overrides" for emails.
There are only language-specific overrides, as discussed near the bottom of this page here: http://www.zen-cart.com/wiki/index.php/Troubleshoot_-_Email_Problems#HTML-formatted_Email_in_non-English_Languages

.
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.

2 Dec 2009, 9:04 AM
#4
ralf_skirr avatar

ralf_skirr

New Zenner

Join Date:
Oct 2009
Location:
Germany
Posts:
33
Plugin Contributions:
0

Re: How to add content to order confirmation email?

I was wondering about the override too. Good to know that now.

Now I hope someone will have an idea what could cause the problem.

Ralf

2 Dec 2009, 9:11 AM
#5
scott_c avatar

scott_c

Zen Follower

Join Date:
Dec 2009
Posts:
236
Plugin Contributions:
0

Re: How to add content to order confirmation email?

Sorry, my mistake! :blush:

Donation made. Enjoy those donuts! :-)

2 Dec 2009, 9:15 AM
#6
drbyte avatar

drbyte

Sensei

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

Re: How to add content to order confirmation email?

Ralf,
Did you follow the link I posted, to set up your language-specific email templates?

.
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.

2 Dec 2009, 9:50 AM
#7
ralf_skirr avatar

ralf_skirr

New Zenner

Join Date:
Oct 2009
Location:
Germany
Posts:
33
Plugin Contributions:
0

Re: How to add content to order confirmation email?

DrByte:

Ralf,
Did you follow the link I posted, to set up your language-specific email templates?

Oh really sorry, I missed that. Too many hours at the screen... :blush:
Checking it now.

Ralf

2 Dec 2009, 10:00 AM
#8
ralf_skirr avatar

ralf_skirr

New Zenner

Join Date:
Oct 2009
Location:
Germany
Posts:
33
Plugin Contributions:
0

Re: How to add content to order confirmation email?

Hm, still not working.

Suggested solution was:

HTML-formatted Email in non-English Languages

The english HTML emails are built from the files in the /email folder. If you have other languages, you'll need to create your own HTML email template files and put them into subfolders named according to the 2-letter language code.

ie:

* /email/de/
* /email/es/
* /email/fr/

Now I have it here:
http://buck-store.de/email/de/email_template_checkout.html

But after the purchase I still do not get this mail version.
**
Is it possible that I'm using the wrong file?** Unfortunately there's no indication in the files when which file is used.

The email I want to change is the one sent to the customer after the purchase.

Ralf

2 Dec 2009, 9:06 PM
#9
drbyte avatar

drbyte

Sensei

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

Re: How to add content to order confirmation email?

I'm guessing that the part you're not telling us is that the text you're looking for is missing in the text-only emails, and that you're not referring to HTML emails, despite only editing the HTML email templates.

In v1.3.x, those files in the /email/ folder are ONLY for HTML-formatted emails.
If you want to change TEXT-Only emails, you'll need to manually edit the many different language defines in the appropriate checkout language file.

In the (not yet released, no date set yet) v2.0, the text and html emails will be handled from the /email/ folder, making it a lot easier to edit your email content.

.
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.

3 Dec 2009, 3:46 AM
#10
ralf_skirr avatar

ralf_skirr

New Zenner

Join Date:
Oct 2009
Location:
Germany
Posts:
33
Plugin Contributions:
0

Re: How to add content to order confirmation email?

Thanks for the info, I will try to figure that out, but I'm afraid it might be over my head.

I did not even know there are 2 versions of the emails available.
How would the system know whether to send text or html version?

Could I simply tell zencart to send the html instead of text version?

Ralf

3 Dec 2009, 3:56 AM
#11
ralf_skirr avatar

ralf_skirr

New Zenner

Join Date:
Oct 2009
Location:
Germany
Posts:
33
Plugin Contributions:
0

Re: How to add content to order confirmation email?

Ok, I found email settings and will try to use html now.

3 Dec 2009, 4:10 AM
#12
drbyte avatar

drbyte

Sensei

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

Re: How to add content to order confirmation email?

If your customer has selected Text mode, then Zen Cart will send in text mode.
If you have HTML enabled, and your customer has opted for HTML format, then they'll receive it in HTML format.

.
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.

3 Dec 2009, 9:37 AM
#13
ralf_skirr avatar

ralf_skirr

New Zenner

Join Date:
Oct 2009
Location:
Germany
Posts:
33
Plugin Contributions:
0

Re: How to add content to order confirmation email?

For now I did set default to html and removed the option to change that from the registration and profile templates.

Not a nice solution, but I have to make sure the email does contain the legal stuff in all cases.

Ralf

P.S. Thanks for all the help, this is truly one of the most responsive forums I know. So far all my problems have been solved with the help of forum members.