If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Managing Customers and Orders / Add text to order confirmation emails

Add text to order confirmation emails

Started by godt on 6 Feb 2013, 1:33 AM · Views: 1,060

Results 1 to 7 of 7
6 Feb 2013, 1:33 AM
#1
godt avatar

godt

Zen Follower

Join Date:
Mar 2006
Location:
Melbourne, Australia
Posts:
378
Plugin Contributions:
0

Post #1 by godt

I'm having no luck at all doing this. I want to add some text in brackets at

Shipping:

so I have

Shipping(text here):

Where do I do this for text and html emails?

6 Feb 2013, 2:09 AM
#2
godt avatar

godt

Zen Follower

Join Date:
Mar 2006
Location:
Melbourne, Australia
Posts:
378
Plugin Contributions:
0

Post #2 by godt

I have added this to checkout_process.php:

define('EMAIL_TEXT_SHIPPING', 'Shipping(text here): ');

and the addition does not appear in text email.

6 Feb 2013, 3:24 AM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Post #3 by gjh42

Search in Tools > Developers Toolkit under Language Files for Shipping: or Shipping (check "case sensitive" to limit irrelevant results). One of those will be the define that creates the present output.

6 Feb 2013, 3:56 AM
#4
godt avatar

godt

Zen Follower

Join Date:
Mar 2006
Location:
Melbourne, Australia
Posts:
378
Plugin Contributions:
0

Post #4 by godt

Yes. I've been doing that for some hours now. No change to any page has any effect. Just doesn't do it:-

english.php
checkout_shipping.php
checkout_process.php
email_template_checkout.html
order.php

amongst others.

6 Feb 2013, 5:58 AM
#5
drbyte avatar

drbyte

Sensei

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

Post #5 by drbyte

The word "shipping" can show up in several ways, including being descriptive text coming from a shipping module and thus be part of a subtotal. In that case it has nothing to do with emails at all (the email is just echoing what's been put together much earlier).

So, for what you're referring to, is this "Shipping:" part of a subtotal? Or is it merely a section title?
Is this for text-only emails? Or HTML-specific emails?

Perhaps you can show an example of what you're getting now?

.
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, 10:06 PM
#6
godt avatar

godt

Zen Follower

Join Date:
Mar 2006
Location:
Melbourne, Australia
Posts:
378
Plugin Contributions:
0

Post #6 by godt

Overall, I want to insert text which makes it clear that shipping is not free everywhere. So, even though I can state clearly here and there that shipping is only free within Australia, and that charges apply for delivery outside Australia, when, for example, an invoice or order confirmation includes something like 'FREE SHIPPING!' or 'Shipping: $0.00' invites clever people to appeal to that to claim free shipping.

In this instance, what I am working to do is wherever 'Shipping:$0.00' appears - invoice, order, email, whatever - it reads 'Shipping(free in Australia only):0.00'. Odd I know, but that seems to be the best I can hope for. Eve though it's odd, it removes the ambivalence. If I can do that, I can move on to the next point at which the problem arises. But for now, I cannot bring this about on the order confirmation email - a language file? - order (even manually editing order), or invoice.

6 Feb 2013, 10:23 PM
#7
drbyte avatar

drbyte

Sensei

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

Post #7 by drbyte

Wherever the shipping price is displayed, its text comes from the selected shipping method chosen by the customer during checkout. Those options come from each separate shipping module's language file. (Or if the module isn't multi-lingual-friendly then it's hard-coded directly in the shipping module itself.)

Perhaps update whichever shipping module you're using to offer free shipping to have the extra explanatory text in it.
That way anywhere the 0.00 shipping is displayed it'll also include your explanatory note.

And/or add something in the existing footer disclaimer text to address the matter.

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