Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Unable to change Order Confirmation Email Text

Unable to change Order Confirmation Email Text

Views: 1,643

Results 1 to 20 of 20
1 Jan 2013, 2:50 AM
#1
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Unable to change Order Confirmation Email Text

Hi - I recently updated my site from 1.3.9h to 1.5.1. I have been trying to get all my customizations back in one at a time.
According to everything I 'think' I know I should be able to change the "Thanks for shopping with us today!" text that is sent in the order confirmation emails.
By my understanding this is done by going in to includes>languages>english>checkout_process.php and editing the text there. I did that. FYI I did include a couple "/n" s for line breaks if that matters. I changed the text in that file to the following:
define('EMAIL_THANKS_FOR_SHOPPING','Thank you so very much for ordering from Hoopclothes.com! We appreciate your business, and look forward to you enjoying your purchase fully."\n""\n" Your order will be taken care of promptly.Please note some items may take up to 7 days to ship as noted in the item descriptions. "\n" "\n"blah blah blah etc etc etc');

Then I re-uploaded the file to includes>languages>english>MY TEMPLATE(fyi andover-modern)>Put File Here.
This did nothing. Since I figured it really should have done something I went back to includes>languages>english and just overwrote the checkout_process.php file there. Still nothing changed in the order confirmation email text. Gah!!! What's the deal?

Anyone?

1 Jan 2013, 4:33 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Unable to change Order Confirmation Email Text

yeah!:

define('EMAIL_THANKS_FOR_SHOPPING','Thank you so very much for ordering from Hoopclothes.com! We appreciate your business, and look forward to you enjoying your purchase fully."\n""\n" Your order will be taken care of promptly.Please note some items may take up to 7 days to ship as noted in the item descriptions. "\n" "\n"blah blah blah etc etc etc');

You have errors in your define ...

define('EMAIL_THANKS_FOR_SHOPPING','Thank you so very much for ordering from Hoopclothes.com! We appreciate your business, and look forward to you enjoying your purchase fully.' . "\n\n" . 'Your order will be taken care of promptly. Please note some items may take up to 7 days to ship as noted in the item descriptions.' . "\n\n" . 'blah blah blah etc etc etc');
2 Jan 2013, 6:21 PM
#3
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Re: Unable to change Order Confirmation Email Text

Thanks Ajeh. I made the changes you suggested in the define.
The order confirmation emails still aren't picking up my text changes. Still all I am getting is 'Thanks for shopping with us today!'

It says this now in my checkout_process.php:
define('EMAIL_THANKS_FOR_SHOPPING','Thank you so very much for ordering from Hoopclothes.com! We appreciate your business, and look forward to you enjoying your purchase fully.' . "\n\n" . 'Your order will be taken care of promptly. Please note some items may take up to 7 days to ship as noted in the item descriptions.' . "\n\n" . ' etc');

?

2 Jan 2013, 6:36 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Unable to change Order Confirmation Email Text

I added mine to:
/includes/languages/english/my_template_dir/checkout_process.php

and those changes show in my emails ...

2 Jan 2013, 7:02 PM
#5
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Re: Unable to change Order Confirmation Email Text

That is exactly the problem. It should work on my site too. I have added the file exactly where yours is and its still having no effect on the email text. I can't figure out why. Its weird!
Where else could it possibly be pulling the Thank you text from?

2 Jan 2013, 7:04 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Unable to change Order Confirmation Email Text

Go to your Zen Cart Admin and into the Tools ... Developers Tool Kit ...

in the bottom input box enter:
EMAIL_THANKS_FOR_SHOPPING

and select Catalog ... and click SEARCH ...

What files come up with defines for:
EMAIL_THANKS_FOR_SHOPPING

2 Jan 2013, 7:29 PM
#7
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Re: Unable to change Order Confirmation Email Text

Oh interesting! Thank you. Now I've found another problem I think...
Background info: I re-built the site last week with 1.5.1 in a sub-directory called update and then transferred everything to the public_html from there. I must have missed something because it is still pulling the text for this email (and probably other things?) from the update directory. Specifically the path is /home2/xxx/public_html/update/includes/languages/english/checkout_process.php

Now the question is how do I go about getting everything directed to pulling from the right directory? Would this be in the config.php files?

2 Jan 2013, 7:32 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Unable to change Order Confirmation Email Text

Check the file, on the server, for the contents in it:
/includes/configure.php

and make sure that it is setup correctly for you site ...

2 Jan 2013, 7:43 PM
#9
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Re: Unable to change Order Confirmation Email Text

Ok - Before I really go messing stuff by not really knowing what I'm doing...
I think these are the things I need to change in the includes/configure.php file
define('DIR_WS_CATALOG', '/update/');
define('DIR_WS_HTTPS_CATALOG', '/update/');

define('DIR_FS_CATALOG', '/home2/xxx/public_html/update/');

define('DIR_FS_LOGS', '/home2/xxx/public_html/update/logs');

define('DIR_FS_SQL_CACHE', '/home2/xxx/public_html/update/cache');

So everywhere that is says 'update' should i just take that directory out? And change it for instance to:
define('DIR_WS_CATALOG', '/');

and
e('DIR_FS_SQL_CACHE', '/home2/xxx/public_html/cache');

Would there also be things in the the admin/includes configure.php that would need to be changed? Probably i imagine.

2 Jan 2013, 10:50 PM
#10
ajeh avatar

ajeh

Oba-san

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

Re: Unable to change Order Confirmation Email Text

That is correct ...

/update is your old site and / is your current site, if you are trying to reach your site from:
http://www.your_domain_name.com

3 Jan 2013, 1:06 AM
#11
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Re: Unable to change Order Confirmation Email Text

Thanks.
Now I have made the edits in the configure.php file, but I am STILL getting the old 'Thanks for shopping with us today.' message.
When I go through the Zen Cart Admin into the Tools>Developers Tool Kit
and search:
EMAIL_THANKS_FOR_SHOPPING

It comes up with three files:
/home2/xxx/public_html/includes/languages/english/andover_modern/checkout_process.php
/home2/xxx/public_html/includes/languages/english/checkout_process.php and
/home2/xxx/public_html/includes/classes/order.php (but this file doesn't have any actual text in it)

All three of these files are in the correct directory for the live (updated) site and i have updated the checkout_process file file in the andover_modern (my template) folder over and over. I have even taken out the "/n/n" to see if that could have been causing the problem. Still no dice.
:wacko:

3 Jan 2013, 2:31 AM
#12
ajeh avatar

ajeh

Oba-san

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

Re: Unable to change Order Confirmation Email Text

Have you an URL to your site that we could perhaps peek at?

3 Jan 2013, 3:27 AM
#13
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Re: Unable to change Order Confirmation Email Text

hoopclothes dot com

3 Jan 2013, 5:59 PM
#14
ajeh avatar

ajeh

Oba-san

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

Re: Unable to change Order Confirmation Email Text

Could you try an experiment and see if you copy the file:
/includes/languages/english/privacy.php

to:
/includes/languages/english/andover_modern/privacy.php

and change the define for:

define('TEXT_INFORMATION', 'Your Privacy Notice should be on this page.');

to read:

define('TEXT_INFORMATION', 'Your Privacy Notice should be on this page. - OVERRIDE');

and see if you see that on your site on the Privacy page ...

3 Jan 2013, 6:32 PM
#15
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Re: Unable to change Order Confirmation Email Text

Well, I've already defined the privacy policy text.
However there is no override in my template file for the text. And when I look at the privacy.php the define('TEXT_INFORMATION', 'Your Privacy Notice should be on this page.'); hasn't been altered. Though I changed that through the Zencart admin>tools>define pages.

I had not done the conditions.php so I changed that the text info line to:
define('TEXT_INFORMATION', 'Your Conditions of Use information should be on this page.-OVERRIDE');

No changes appeared on the conditions of use page. :\

3 Jan 2013, 8:29 PM
#16
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Re: Unable to change Order Confirmation Email Text

Ok -- now weirdest of all a 'real' order came in and my edited text from: /home2/xxx/public_html/includes/languages/english/andover_modern/checkout_process.php file seems to have worked perfectly in this case.
So what in world could cause an order placed by me (as a test customer) to have the default text and a 'real' customer order to have the edited text. Perhaps you should also know that this customer is a repeat customer and had an account already in the prior incarnation of my store in 1.3.9h as did i. Ummm? :frusty:
since it is working maybe i should just let the weirdness go, but i hate unexplained things like that as they tend to have a tendency to haunt you at some point if they aren't resolved.

3 Jan 2013, 8:47 PM
#17
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Unable to change Order Confirmation Email Text

Strange indeed. Is your hosting provider running a "cache", "proxy", or similar in front of your website (or caching PHP output) by any chance?

3 Jan 2013, 9:18 PM
#18
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Re: Unable to change Order Confirmation Email Text

Not sure how to tell that? There is a cache directory in the public_html. Its full of debug logs, but it looks like they are from the older version of the site (1.3.9h because there are no updates to it since I installed 1.5.1). Does that help answer that question at all?

3 Jan 2013, 11:09 PM
#19
ajeh avatar

ajeh

Oba-san

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

Re: Unable to change Order Confirmation Email Text

Clean out your debug logs in:
/cache
/logs

and ensure that the directory:
/logs

is writable ... now keep an eye on these and see if you can generate any new debug logs ...

NOTE: You should not have any debug logs ever ... they only occur when there is something that needs to be fixed ...

7 Jan 2013, 5:33 AM
#20
yeah avatar

yeah

New Zenner

Join Date:
Aug 2010
Posts:
77
Plugin Contributions:
0

Re: Unable to change Order Confirmation Email Text

Hi -
I cleaned the debug logs out of /cache and /logs as you suggested. Nothing new in there yet. The /log file permission is set at 755, write permissions only to owner. Is that the correct setting?
Strangely every new order we have gotten recently has the correct edited text. HOWEVER, whenever I place test orders as my alter ego the email confirmation text reverts to the default 'Thanks for shopping with us...'
???