HI all,
I've tried to add a custom 'define' and then call it from within an email template, but I get the actual text of the define var instead of the value assigned to it.
What I've done(after having backed up files being worked on, of course! <g>):
1) added the following to /zenroot/includes/languages/english/email_extras.php
2) added a css class to /zenroot/email/email_template_welcome.htmlCode:define('CPR_EMAIL_MULTI_SHIP_INFO', 'Shipping estimates provided at the time of your order represent the charges if all products on your order are shipped at the same time. If your order consists of multiple items and not all are ready at the time your order is placed, CPR Tools will ship items which are ready, and hold the back ordered products for shipment when they become ready. Each shipment to you will incur a separate shipping and handling fee.\n\nIf you would prefer that we ship your order in its entirety (i.e. hold \'ready\' items until \'back ordered\' items become ready), you must notify us immediately by email to [email protected]. Please include your order number with all correspondence. \n\n');
3) called the define created in email_extras.php within the email_template_welcome.html thus:Code:.disclaimer3 {color:#666666; padding:5px;}
What I got in my sample email upon creation of a new account was this:Code:<div class="disclaimer3">$CPR_EMAIL_MULTI_SHIP_INFO</div>
I realize I've missed something here and am hoping for a pointer. My ultimate goal is to add the same disclaimer to the welcome email and the checkout_success one as well.Code: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 [email protected] $CPR_EMAIL_MULTI_SHIP_INFO This email is sent in accordance with the US CAN-SPAM Law in effect 01/01/2004. Removal requests can be sent to this address and will be honored and respected.
TIA,
~Ray




