Zen Cart Logo
Forums / Managing Customers and Orders / Unfamiliar Text on Welcome Emails

Unfamiliar Text on Welcome Emails

Locked

Views: 6,088

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
5 Apr 2008, 7:30 AM
#1
bigjoed avatar

bigjoed

Zen Follower

Join Date:
Apr 2006
Location:
Fort Bragg, North Carolina
Posts:
152
Plugin Contributions:
0

Unfamiliar Text on Welcome Emails

When creating an account on my site, the welcome email that the customer receives shows as:

EMAIL_SUBJECT

EMAIL_GREET_NONEEMAIL_WELCOME

EMAIL_TEXTEMAIL_CONTACTEMAIL_GV_CLOSURE

EMAIL_DISCLAIMER_NEW_CUSTOMER

This email address was given to us by you or by one of our customers. If you
feel that you have received this email in error, .....

The problem is that I don't know where to begin trying to fix this since I can't find any files with the codes EMAIL_GREET_NONEEMAIL_WELCOME or EMAIL_TEXTEMAIL_CONTACTEMAIL_GV_CLOSURE. My email transport option is currently on php.

Anybody has any ideas? Thanks

5 Apr 2008, 9:32 AM
#2
steven300 avatar

steven300

Totally Zenned

Join Date:
Jan 2008
Posts:
1,564
Plugin Contributions:
1

Re: Unfamiliar Text on Welcome Emails

bigjoed:

I can't find any files with the codes

This is likely to be the source of your problem. Looks like you're missing some define statements.

These should be located in..
includes/languages/english/create_account.php

FTP to your server and check the integrity of that file.

5 Apr 2008, 9:38 AM
#3
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Unfamiliar Text on Welcome Emails

Additionally, the SINGLE QUOTES that encase the text labels/strings may have been deleted too.

Here's the first few lines of code in includes\languages\english\create_account_php

<?php
/**
 * @package languageDefines
 * @copyright Copyright 2003-2006 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: create_account.php 3027 2006-02-13 17:15:51Z drbyte $
 */

define('NAVBAR_TITLE', 'Create an Account');

define('HEADING_TITLE', 'My Account Information');

define('TEXT_ORIGIN_LOGIN', '<strong class="note">NOTE:</strong> If you already have an account with us, please login at the <a href="%s">login page</a>.');

// greeting salutation
define('EMAIL_SUBJECT', 'Welcome to ' . STORE_NAME);
define('EMAIL_GREET_MR', 'Dear Mr. %s,' . "\n\n");
define('EMAIL_GREET_MS', 'Dear Ms. %s,' . "\n\n");
define('EMAIL_GREET_NONE', 'Dear %s' . "\n\n");

If you DELETE a label:-

define('NAVBAR_TITLE', 'Create an Account');

Then make sure the single quotes are retained.

define('NAVBAR_TITLE', '');

To make sure the integrity of your create_account.php file is intact, use WINMERGE to compare you copy with an original file.

5 Apr 2008, 12:59 PM
#4
bigjoed avatar

bigjoed

Zen Follower

Join Date:
Apr 2006
Location:
Fort Bragg, North Carolina
Posts:
152
Plugin Contributions:
0

Re: Unfamiliar Text on Welcome Emails

Well, this one is really beating me up. I just realized that I was never going to find the code as it shows because it is supposed to be separated. It should be:

EMAIL_SUBJECT
EMAIL_GREET_NONE
EMAIL_WELCOME
EMAIL_TEXT
EMAIL_CONTACT
EMAIL_GV_CLOSURE
EMAIL_DISCLAIMER_NEW_CUSTOMER

instead of:

EMAIL_SUBJECT
EMAIL_GREET_NONEEMAIL_WELCOME
EMAIL_TEXTEMAIL_CONTACTEMAIL_GV_CLOSURE
EMAIL_DISCLAIMER_NEW_CUSTOMER

Another problem I can't figure out is why is EMAIL_DISCLAIMER_NEW_CUSTOMER displayed on the email since the definition for it also shows right below it.

Any help on this one...

Thanks

5 Apr 2008, 1:17 PM
#5
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: Unfamiliar Text on Welcome Emails

Did you read Post #3 above...

includes\languages\english\create_account_php

is where you need to look.

If this stumps you, just FTP upload a fresh copy of:

(YOUR HARD DRIVE OF ZENCART)includes\languages\english\create_account_php

to

(YOUR WEBSERVER OF ZENCART)includes\languages\english\create_account_php

5 Apr 2008, 1:39 PM
#6
bigjoed avatar

bigjoed

Zen Follower

Join Date:
Apr 2006
Location:
Fort Bragg, North Carolina
Posts:
152
Plugin Contributions:
0

Re: Unfamiliar Text on Welcome Emails

I did. I used "Beyond Compare" to compare files and they all match with a clean installation. Also, I just uploaded the create_account.php and the entire email folder through my cPanel (File Manager Upload) as opposed to my FTP software and I'm still getting the same results.

5 Apr 2008, 11:05 PM
#7
drbyte avatar

drbyte

Sensei

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

Re: Unfamiliar Text on Welcome Emails

What URL is this happening at?
How many "create_account.php" files do you have under your /includes/languages/ area?
If you search for "EMAIL_GREET_NONE" using the Developers Toolkit, where do you find it defined? (searching ALL files in Catalog)
Do another search for ALL Catalog files for EMAIL_DISCLAIMER_NEW_CUSTOMER. Where do you find it?

What version of Zen Cart?
What addons/contributions do you have installed?

You said you did a compare of files ... which files did you compare? Did you compare everything or just a few language files?

5 Apr 2008, 11:42 PM
#8
bigjoed avatar

bigjoed

Zen Follower

Join Date:
Apr 2006
Location:
Fort Bragg, North Carolina
Posts:
152
Plugin Contributions:
0

Re: Unfamiliar Text on Welcome Emails

Thanks for your help.

I'm not quite sure what you mean by "What URL is this happening at?" It happens on the welcome email after signing up.

I did a search on the developers tool kit and these are the results:

When searching for EMAIL_GREET_NONE I get the following:

/home/store/public_html/includes/languages/english/create_account.php

Line #19 : define('EMAIL_GREET_NONE', 'Dear %s' . "\n\n");

/home/store/public_html/includes/languages/english/mytemplate/faqs_submit.php

Line #9 : define('EMAIL_GREET_NONE', 'Dear %s' . "\n\n");

/home/store/public_html/includes/languages/english/mytemplate/links_submit.php

Line #30 : define('EMAIL_GREET_NONE', 'Dear %s,' . "\n\n");

/home/store/public_html/includes/languages/english/mytemplate/returns.php

Line #26 : define('EMAIL_GREET_NONE', 'Dear %s' . "\n\n");

/home/store/public_html/includes/languages/english/mytemplate/testimonials_add.php

Line #21 : define('EMAIL_GREET_NONE', 'Dear %s' . "\n\n");

/home/store/public_html/includes/modules/create_account.php

Line #342 : $email_text = sprintf(EMAIL_GREET_NONE, $firstname);

/home/store/public_html/includes/modules/pages/faqs_submit/header_php.php

Line #114 : $email_text = sprintf(EMAIL_GREET_NONE, $name);

/home/store/public_html/includes/modules/pages/links_submit/header_php.php

Line #108 : $email_text = sprintf(EMAIL_GREET_NONE, $links_contact_name);

/home/store/public_html/includes/modules/pages/returns/header_php.php

Line #79 : $email_text = sprintf(EMAIL_GREET_NONE, $name);

/home/store/public_html/includes/modules/pages/testimonials_add/header_php.php

Line #81 : $email_text = sprintf(EMAIL_GREET_NONE, $name);

/home/store/public_html/includes/modules/payment/paypalwpp.php

Line #2113 : $email_text = sprintf(EMAIL_GREET_NONE, $paypal_ec_payer_info['payer_firstname']) . EMAIL_WELCOME . EMAIL_TEXT;

/home/store/public_html/includes/modules/mytemplate/create_account.php

Line #365 : $email_text = sprintf(EMAIL_GREET_NONE, $firstname);

When searching for for: EMAIL_DISCLAIMER_NEW_CUSTOMER I get...

/home/store/public_html/disk_usage_log/email_welcome.php

Line #89 : $email_text .= "\n\n" . sprintf(EMAIL_DISCLAIMER_NEW_CUSTOMER, STORE_OWNER_EMAIL_ADDRESS). "\n\n";

Line #90 : $html_msg['EMAIL_DISCLAIMER'] = sprintf(EMAIL_DISCLAIMER_NEW_CUSTOMER, '<a href="mailto:' . STORE_OWNER_EMAIL_ADDRESS . '">'. STORE_OWNER_EMAIL_ADDRESS .' </a>');

/home/store/public_html/includes/functions/functions_email.php

Line #101 : if (!strstr($email_text, sprintf(EMAIL_DISCLAIMER, STORE_OWNER_EMAIL_ADDRESS)) && $to_email_address != STORE_OWNER_EMAIL_ADDRESS && !defined('EMAIL_DISCLAIMER_NEW_CUSTOMER')) $email_text .= "\n" . sprintf(EMAIL_DISCLAIMER, STORE_OWNER_EMAIL_ADDRESS);

/home/store/public_html/includes/languages/english/create_account.php

Line #41 : define('EMAIL_DISCLAIMER_NEW_CUSTOMER', 'This email address was given to us by you or by one of our customers. If you did not signup for an account, or feel that you have received this email in error, please send an email to %s ');

/home/store/public_html/includes/languages/english/mytemplate/faqs_submit.php

Line #19 : define('EMAIL_DISCLAIMER_NEW_CUSTOMER', 'This question was submitted to us by you or by one of our users. If you did not submit a question, or feel that you have received this email in error, please send an email to %s ');

/home/store/public_html/includes/languages/english/mytemplate/testimonials_add.php

Line #30 : define('EMAIL_DISCLAIMER_NEW_CUSTOMER', 'This testimonial was submitted to us by you or by one of our users. If you did not submit a testimonial, or feel that you have received this email in error, please send an email to %s ');

/home/store/public_html/includes/modules/create_account.php

Line #398 : $email_text .= "\n\n" . sprintf(EMAIL_DISCLAIMER_NEW_CUSTOMER, STORE_OWNER_EMAIL_ADDRESS). "\n\n";

Line #399 : $html_msg['EMAIL_DISCLAIMER'] = sprintf(EMAIL_DISCLAIMER_NEW_CUSTOMER, '<a href="mailto:' . STORE_OWNER_EMAIL_ADDRESS . '">'. STORE_OWNER_EMAIL_ADDRESS .' </a>');

/home/store/public_html/includes/modules/pages/faqs_submit/header_php.php

Line #141 : $email_text .= "\n\n" . sprintf(EMAIL_DISCLAIMER_NEW_CUSTOMER, STORE_OWNER_EMAIL_ADDRESS). "\n\n";

Line #142 : $html_msg['EMAIL_DISCLAIMER'] = sprintf(EMAIL_DISCLAIMER_NEW_CUSTOMER, '<a href="mailto:' . STORE_OWNER_EMAIL_ADDRESS . '">'. STORE_OWNER_EMAIL_ADDRESS .' </a>');

/home/store/public_html/includes/modules/pages/testimonials_add/header_php.php

Line #95 : $email_text .= "\n\n" . sprintf(EMAIL_DISCLAIMER_NEW_CUSTOMER, STORE_OWNER_EMAIL_ADDRESS). "\n\n";

Line #96 : $html_msg['EMAIL_DISCLAIMER'] = sprintf(EMAIL_DISCLAIMER_NEW_CUSTOMER, '<a href="mailto:' . STORE_OWNER_EMAIL_ADDRESS . '">'. STORE_OWNER_EMAIL_ADDRESS .' </a>');

/home/store/public_html/includes/modules/mytemplate/create_account.php

Line #421 : $email_text .= "\n\n" . sprintf(EMAIL_DISCLAIMER_NEW_CUSTOMER, STORE_OWNER_EMAIL_ADDRESS). "\n\n";

Line #422 : $html_msg['EMAIL_DISCLAIMER'] = sprintf(EMAIL_DISCLAIMER_NEW_CUSTOMER, '<a href="mailto:' . STORE_OWNER_EMAIL_ADDRESS . '">'. STORE_OWNER_EMAIL_ADDRESS .' </a>');

I'm running zencart 1.3.8a and have the following contributions installed:

1.3.6 Telephone Not Required on Signup
1.3.8 Simple Google Analytics
1.3.8 Ask A Question
1.3.6 Cross Sell
1.3.8 Order Steps - Tableless
1.3.7 Recover Cart Sales
1.3.6 Cart Upsell/CrossSell on Shopping-Cart Page
1.3.8 Supertracker Author: Mark Stephens (ported by a_berezin)
1.3.7 Export Shipping Information
1.3.X AWeber Signup Sidebox
1.3.7 Best Sellers Reloaded
1.3.7 Shopping Cart Free-Shipping-Qualifier Sidebox
1.3.7 shopping_cart_totals_in_header_1.0
1.3.8 Search in Categories Header
1.3.8 Column Layout Grid for Product Listing
1.3.8 Column Divider Pro (CDP)
1.3.8 Windows Live Product Search Feeder
1.3.8 Yahoo! Product Submit Feeder
1.3.8 Amazon Inventory Loader
1.3.8 Bidhopper Dynalist Generator
1.3.8 eBay Exporter
1.3.8 Feeder for DealGates Pipelines
1.3.6 MAP Pricing ( m.a.p ) : Add to Cart to See Price
1.3.8 captcha-number-subject-combo-in-one-1.0
1.3.5 Admin-based Copyright Setting Control
1.3.8 Google Base (Froogle) Feeder
1.3.8 Google Sitemap
1.3.8 Best Sellers Page
1.3.6 Better Together Promotional Page
1.3.7 FAQ Module
1.3.8 Testimonial Manager
1.3.8 Links Manager
News & Article Management for Zen Cart – version 2.110
1.3.8 Fast and Easy Checkout for Zen Cart
1.3.8 Google Checkout module for Zen Cart

I did a comparison of all the language files using beyond compare but none of the files mentioned above have any differences.

Have no idea what else to do...

6 Apr 2008, 12:04 AM
#9
bigjoed avatar

bigjoed

Zen Follower

Join Date:
Apr 2006
Location:
Fort Bragg, North Carolina
Posts:
152
Plugin Contributions:
0

Re: Unfamiliar Text on Welcome Emails

I have a create_account.php and create_account _success.php on the includes/languages/english folder and no repeats on my template folder.

Thanks again...

6 Apr 2008, 12:08 AM
#10
drbyte avatar

drbyte

Sensei

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

Re: Unfamiliar Text on Welcome Emails

bigjoed:

I'm not quite sure what you mean by "What URL is this happening at?" It happens on the welcome email after signing up.I just meant: Where can we witness it? ie: the website URL

6 Apr 2008, 12:13 AM
#11
drbyte avatar

drbyte

Sensei

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

Re: Unfamiliar Text on Welcome Emails

Are you experiencing these issues with text-only emails, or with HTML emails?

6 Apr 2008, 12:35 AM
#12
bigjoed avatar

bigjoed

Zen Follower

Join Date:
Apr 2006
Location:
Fort Bragg, North Carolina
Posts:
152
Plugin Contributions:
0

Re: Unfamiliar Text on Welcome Emails

Text only, I have not try to send any html emails. Also, on my Email Transport method I have it set to PHP. I have sent other emails and the subject and content of the email seems to work fine. It is the welcome email that I have problems with...

Thanks again

6 Apr 2008, 12:42 AM
#13
drbyte avatar

drbyte

Sensei

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

Re: Unfamiliar Text on Welcome Emails

Next step: evaluate every addon that you've installed to determine whether it touches any of the files used when a new user registers ... and fix things accordingly.

15 Mar 2009, 7:48 PM
#14
wwiii avatar

wwiii

New Zenner

Join Date:
Mar 2009
Posts:
32
Plugin Contributions:
0

Re: Unfamiliar Text on Welcome Emails

i have a problem very similar to this one but in many areas.

Freshly installed FEC and ESL on v1.3.8 no other mods yet.

i have the exact same problem with email but have not attempted to fix yet. instead i used what i read here and applied the theory to my split checkout page. the title and box text were displaying in the same fashion appearing as:

COWOA_HEADING and

TEXT_RATHER_COWOA respectively.

i traced my problem to - includes/languages/english/login.php
i added the following code and fixed the problem on that page.

//my mod//
define('COWOA_HEADING', 'Checkout without an Account');
define('COWOA_HEADING_SPLI', 'Checkout without an Account');

define('TEXT_RATHER_COWOA', 'Although you may checkout without an <strong>' . STORE_NAME . '</strong> account if you choose, you will be missing out on all of the benefits of registering with us today. <br /> <br /><strong>Signup right now we will instantly email you a $10.00 Discount Coupon</strong>');
//end my mod //

that worked for me

i also have the same problem when COWAO on a page that i believe is suppose to be a "shipping address" page.

i have stuff like this displaying: view page

Home :: NAVBAR_TITLE

HEADING_TITLE
TEXT_ORIGIN_LOGIN

TABLE_HEADING_CONTACT_DETAILS

TITLE_CONTINUE_CHECKOUT_PROCEDURE
TEXT_CONTINUE_CHECKOUT_PROCEDURE

I have not been able to figure out which file i should be editing tho fix this page.

Can anyone help me?

16 Mar 2009, 11:25 PM
#15
drbyte avatar

drbyte

Sensei

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

Re: Unfamiliar Text on Welcome Emails

Your problems appear to be related to missing language files, whether original files or parts of the many addons you've added.