Forums / Bug Reports / [Not a bug] 1.3.8 HTML e-mail with language pack

[Not a bug] 1.3.8 HTML e-mail with language pack

Locked

Started by jurjenruben on 24 Feb 2008, 1:59 PM · Views: 7,507

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
24 Feb 2008, 1:59 PM
#1
jurjenruben avatar

jurjenruben

New Zenner

Join Date:
Dec 2007
Posts:
86
Plugin Contributions:
0

[Not a bug] 1.3.8 HTML e-mail with language pack

Hi all,

I've installed the Dutch language in my Zen Cart 1.3.8. I can't get my e-mails in Dutch to be displaid in HTML. If a customer uses the dutch version of my site, non of the e-mails (welcome, order, etc.) are in HTML fromat. Moreover, when I send e-mails (newsletter, gv, regular, etc.) via my Dutch admin, also no HTML format. All works perfectly when English is selected/the English version of the site is used.
I have read multiple threads on this topic, and this occurs (to my knowledge) also in the French,and Italian pack.

**Now, what I have done: **
I have dowloaded all english files to my computer. Changed the names of the folders (located in both includes/languages , and my admin/includes/languages) named "english" to "dutch", deleted the dutch folders online and uploaded the english content (now named "dutch") to the server. However, the same problem still occurs. So, for as far as I can understand, this would suggest that it is in the actual coding, instead of the language pack...

Hope this information helps, and that you can help me/us out.

Thanks in advance!!
Jurjen

25 Feb 2008, 4:11 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: [Not a bug] 1.3.8 HTML e-mail with language pack

  1. Install the Email Archive Manager contribution from the downloads area.
  2. Go to Admin->Configuration->Email Options->Email Archiving Active? ... set to true
  3. Test sending some emails according to the problem you described above.
  4. Go to the Admin->Tools->Email Archive Manager
  5. Open the email you just sent. Does it contain both HTML and TEXT versions? How do they look?

I suspect Zen Cart is sending them fine but your mailserver is rejecting them.

If the email gets into the Email Archive, that means Zen Cart handed it off to the mailserver without error. Whatever the mailserver does after that is up to its configuration. If it strips off the HTML portion due to some set of rules it's using, you may have to sort that out with your hosting company, or at least get them to tell you what "rule" is being violated to cause the HTML content to be ignored.

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

25 Feb 2008, 1:07 PM
#3
jurjenruben avatar

jurjenruben

New Zenner

Join Date:
Dec 2007
Posts:
86
Plugin Contributions:
0

Re: [Not a bug] 1.3.8 HTML e-mail with language pack

Thanks for your reply.

With the e-mails send via the english admin, I get both the options "preview HTML" or "preview TEXT" when looking in Admin-Tools-E-mail Archieve manager. However, with the e-mails send via the Dutch admin, I only have the option "preview TEXT". Also, under the header "format" it sais TEXT, while I send it in HTML.

So this does not seems to be a mailserver problem, I think?

26 Feb 2008, 7:25 PM
#4
rued avatar

rued

Zen Follower

Join Date:
Oct 2005
Location:
Finland
Posts:
186
Plugin Contributions:
0

Re: [Not a bug] 1.3.8 HTML e-mail with language pack

I can confirm this is a problem on other languages than English, having the same issue on the Norwegian pack.

I'm trying to track it down now, but don't know where to start. :)

I can also confirm that this was not a issue on 1.3.7

27 Feb 2008, 12:24 PM
#5
rob_pa3_cxg avatar

rob_pa3_cxg

New Zenner

Join Date:
Feb 2008
Location:
Holland
Posts:
2
Plugin Contributions:
0

Re: [Not a bug] 1.3.8 HTML e-mail with language pack

Hi,

The problem is only in V1.3.8(a) in: /includes/functions/functions_email.php.
About rule #393.

$langfolder = (strtolower($_SESSION['languages_code']) == 'en') ? '' : strtolower($_SESSION['languages_code']) . '/';

Just add "or 'your coutry ID' behind 'en'

$langfolder = (strtolower($_SESSION['languages_code']) == 'en' or 'nl') ? '' : strtolower($_SESSION['languages_code']) . '/';

In my case 'nl'

This is the solution to this problem,

No thanks, your welcome.

*MODERATOR NOTE: A more efficient solution is posted here: *http://www.zen-cart.com/forum/showpost.php?p=516492&#516492

27 Feb 2008, 4:42 PM
#6
joristielen avatar

joristielen

New Zenner

Join Date:
Oct 2006
Posts:
2
Plugin Contributions:
0

Re: [Not a bug] 1.3.8 HTML e-mail with language pack

Ok, so i do not thank you but I'm going to try your sollution. :bigups:

27 Feb 2008, 11:31 PM
#7
gerjan avatar

gerjan

New Zenner

Join Date:
Dec 2007
Posts:
74
Plugin Contributions:
0

Re: [Not a bug] 1.3.8 HTML e-mail with language pack

Dank u!! Thank you very much, it worked out for me as well. I've been searching three day's now but couldn't find it. So I DO thank you!

Gerjan

28 Feb 2008, 7:24 AM
#8
joristielen avatar

joristielen

New Zenner

Join Date:
Oct 2006
Posts:
2
Plugin Contributions:
0

Re: [Not a bug] 1.3.8 HTML e-mail with language pack

Ok, I just had time to verify this.

:clap:

(This means it does :blush:)

28 Feb 2008, 8:19 AM
#9
jurjenruben avatar

jurjenruben

New Zenner

Join Date:
Dec 2007
Posts:
86
Plugin Contributions:
0

Re: [Not a bug] 1.3.8 HTML e-mail with language pack

Thanks man!

28 Feb 2008, 6:50 PM
#10
drbyte avatar

drbyte

Sensei

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

Re: [Not a bug] 1.3.8 HTML e-mail with language pack

Actually, while the "solution" posted above may work, it's not the best solution.

The $langfolder variable was added so that you could have email templates set up for multiple languages. The assumption was that "english" would be the default; however, other language-templates can be set up easily by copying the email template files to a folder like this:

/email/
/email/nl/
/email/cn/
/email/de/
/email/fr/
/email/es/

... etc

To use this, you would copy your "/email/" folder contents to "/email/nl/" and then customize as needed. Thus no coding changes are needed.

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

28 Feb 2008, 7:44 PM
#11
jurjenruben avatar

jurjenruben

New Zenner

Join Date:
Dec 2007
Posts:
86
Plugin Contributions:
0

Re: [Not a bug] 1.3.8 HTML e-mail with language pack

Ah... nice, even better.
Thanks!

28 Feb 2008, 9:58 PM
#12
janneke avatar

janneke

New Zenner

Join Date:
Jan 2008
Posts:
5
Plugin Contributions:
0

Re: [Not a bug] 1.3.8 HTML e-mail with language pack

Thanks everybody! :D

7 Mar 2008, 10:59 AM
#13
nsl avatar

nsl

New Zenner

Join Date:
Mar 2008
Posts:
1
Plugin Contributions:
0

Re: [Not a bug] 1.3.8 HTML e-mail with language pack

hi!

I've got the same prob with the german language.
Now I've the stucture /email/de.
in /email there are the orig files. So I created the subfolder de and copied the template files.
but it will not work :-(
all english customers will receive the html mails, but the germans will only get the text- mails...

17 Mar 2008, 5:41 PM
#14
jppp avatar

jppp

New Zenner

Join Date:
Sep 2007
Posts:
15
Plugin Contributions:
0

Re: [Not a bug] 1.3.8 HTML e-mail with language pack

Thanks to Rob - PA3-CXG. It works for me too :) I use Thai Language in my site and had this html email issue too. I added "th" in this line
$langfolder = (strtolower($_SESSION['languages_code']) == 'en' or 'th') ? '' : strtolower($_SESSION['languages_code']) . '/';
IT WORKS.... THANKS :hug:

13 May 2008, 4:55 PM
#15
petek avatar

petek

Zen Follower

Join Date:
Jan 2008
Location:
Chevreuse, France
Posts:
278
Plugin Contributions:
0

Re: [Not a bug] 1.3.8 HTML e-mail with language pack

Has everyone got this working ? I created a "fr" folder and placed all the email template files in it and can now send html emails from within the French part of Admin but the text of the emails is in English, ie: the French-language define statements are not getting through. What to do ?

Cheers

Pete
zc 1.3.9h
www.gardenserre.fr

18 May 2008, 4:23 PM
#16
froldao avatar

froldao

New Zenner

Join Date:
Nov 2007
Posts:
40
Plugin Contributions:
0

Re: [Not a bug] 1.3.8 HTML e-mail with language pack

Sorry, not working for me even after having created /email/pt and tweaking everything else... I bet there is some code change needed...

12 Jun 2008, 8:28 AM
#17
jmeca avatar

jmeca

New Zenner

Join Date:
Nov 2006
Location:
Sapin
Posts:
44
Plugin Contributions:
0

Re: [Not a bug] 1.3.8 HTML e-mail with language pack

Hello:

I instaled Email Archive Manager on 1.3.8a but nothing happends it look same of before, i have put it on 'true' but it look same nothing change.

Do you have Any ideas?

Thank you very much.