Zen Cart Logo
Forums / Discounts/Coupons, Gift Certificates, Newsletters, Ads / mail_gv add different variable to email template?

mail_gv add different variable to email template?

Views: 1,119

Results 1 to 4 of 4
22 Feb 2011, 8:13 PM
#1
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

mail_gv add different variable to email template?

Hello,

I want to add a different text that is known under a different variable in the gv_mail. I have edited admin/includes/languages/dutch/email_extras.php and added a line:```php
define('EMAIL_GV_DISCLAIMER_MAIL', 'my dutch message');


However, when i send out the email it shows $EMAIL_GV_DISCLAIMER_MAIL instead of the "my dutch message" that i would expect.

Can anybody please help me how i can make this work?

Thanks,
Jeroen
22 Feb 2011, 11:01 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: mail_gv add different variable to email template?

You might need to add EMAIL_GV_DISCLAIMER_MAIL to /includes/filenames.php

23 Feb 2011, 7:28 AM
#3
drbyte avatar

drbyte

Sensei

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

Re: mail_gv add different variable to email template?

You need to add the constant to your composed email output. Often something like $html_msg['EMAIL_CONSTANT_NAME'] = EMAIL_CONSTANT_NAME; ... before the zen_mail() call. You'll see the other existing ones in the code that does the sending.

24 Feb 2011, 1:37 PM
#4
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

Re: mail_gv add different variable to email template?

excellent, thank you very much!