We will be doing some site maintenance and need to take the site down for 10 minutes.

Site will go down at 19:00 UTC

Forums / General Questions / Email Friend Subject

Email Friend Subject

Started by mamakitty on 7 Feb 2011, 2:13 AM · Views: 4,783

Results 1 to 8 of 8
7 Feb 2011, 2:13 AM
#1
mamakitty avatar

mamakitty

New Zenner

Join Date:
Aug 2006
Location:
Denver CO
Posts:
65
Plugin Contributions:
0

Email Friend Subject

v1.3.9h

The subject on emails sent through the Tell a Friend process show "Order Confirmation" as the subject line.

The file /includes/languages/english/tell_a_friend.php shows this:
define('EMAIL_TEXT_SUBJECT', 'Your friend %s has recommended this great product from %s');

I copied that file to my /includes/languages/english/CUSTOM/tell_a_friend.php and made a change to the subject line (even though it already shows what the correct subject should be). No effect. I then changed some of the other info in the body of the email. Those changes took effect.

After searching the forums, I used the Developer's Tool Kit and searched for _subject in "CONSTANT or Language File defines" and for Order Confirmation in the "Look-up in all files". Didn't see any other files that would impact on the subject line of Tell a Friend emails.

Usually by the time I've finished typing out a question here, I have managed to find the answer for myself. Not so this time :( Help?

Dorothy

7 Feb 2011, 2:24 AM
#2
mamakitty avatar

mamakitty

New Zenner

Join Date:
Aug 2006
Location:
Denver CO
Posts:
65
Plugin Contributions:
0

Re: Email Friend Subject

site is whitewolfjewelry.com

Dorothy

8 Feb 2011, 4:49 AM
#3
mamakitty avatar

mamakitty

New Zenner

Join Date:
Aug 2006
Location:
Denver CO
Posts:
65
Plugin Contributions:
0

Re: Email Friend Subject

Kicking this back to the first page to see if someone can offer some insight.

Dorothy

8 Feb 2011, 3:00 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Email Friend Subject

If you go to your Tools ... Developers Tool Kit ... and in the bottom input box enter:
EMAIL_TEXT_SUBJECT

and select Catalog ... then click Search ...

What do you see in the files for tell_a_friend.php

What files do you see:
Order Confirmation

as the define definition?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

8 Feb 2011, 5:03 PM
#5
mamakitty avatar

mamakitty

New Zenner

Join Date:
Aug 2006
Location:
Denver CO
Posts:
65
Plugin Contributions:
0

Re: Email Friend Subject

The "order confirmation" shows here:

/includes/languages/english/checkout_process.php
Line #22 : define('EMAIL_TEXT_SUBJECT', 'Order Confirmation');

/includes/languages/english/extra_definitions/checkout_process.php
Line #22 : define('EMAIL_TEXT_SUBJECT', 'Order Confirmation');

/includes/languages/english/CUSTOM/checkout_process.php
Line #22 : define('EMAIL_TEXT_SUBJECT', 'Order Confirmation');

The tell_a_friend files are:

/includes/languages/english/tell_a_friend.php
Line #28 : define('EMAIL_TEXT_SUBJECT', 'Your friend %s has recommended this great product from %s');

/includes/languages/english/CUSTOM/tell_a_friend.php
Line #28 : define('EMAIL_TEXT_SUBJECT', 'Your friend %s has recommended this great product from %s');

/includes/modules/pages/tell_a_friend/header_php.php
Line #81 : $email_subject = sprintf(EMAIL_TEXT_SUBJECT, $from_name, STORE_NAME);

Thank you so much for your time, Ajeh.

Dorothy

8 Feb 2011, 5:12 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Email Friend Subject

This is probably overriding the settings:

/includes/languages/english/extra_definitions/checkout_process.php
Line #22 : define('EMAIL_TEXT_SUBJECT', 'Order Confirmation');

that runs as if it were part of the english.php file so the one for specific purposes can never run as the constant EMAIL_TEXT_SUBJECT is already defined ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

8 Feb 2011, 9:26 PM
#7
mamakitty avatar

mamakitty

New Zenner

Join Date:
Aug 2006
Location:
Denver CO
Posts:
65
Plugin Contributions:
0

Re: Email Friend Subject

I made a copy of the /includes/languages/english/extra_definitions/checkout_process.php file and removed these two lines:
define('EMAIL_TEXT_SUBJECT', 'Order Confirmation');
define('EMAIL_TEXT_HEADER', 'Order Confirmation');

I put the changed file in /includes/languages/english/extra_definitions/CUSTOM. The header and subject of the tell_a_friend emails now has the correct info. I ran a test order and the change doesn't seem to have caused any problems on the actual order confirmation emails.

Thank you so much for your help. Coffee and a donut on its way :)

Dorothy

8 Feb 2011, 9:29 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Email Friend Subject

You are most welcome ... thanks for the details on how you tested the fix of these changes, always a help to others!

And thanks for the Coffee and a donut! :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!