Forums / General Questions / Send Copy of Admin GV Emails Not Working

Send Copy of Admin GV Emails Not Working

Views: 1,054

Results 1 to 2 of 2
27 Dec 2013, 5:46 PM
#1
lem3 avatar

lem3

New Zenner

Join Date:
Aug 2013
Location:
Texas
Posts:
6
Plugin Contributions:
0

Send Copy of Admin GV Emails Not Working

We have set up Gift Certificates in our cart and turned on "Send Copy of Admin GV Mail Emails To" in the email configuration panel. Testing by sending a few certificates showed no copies were sent. No copies show in the email archive.
We traced the problem to line 126 in gv_mail.php:

if (SEND_EXTRA_DISCOUNT_COUPON_ADMIN_EMAILS_TO_STATUS== '1' and SEND_EXTRA_DISCOUNT_COUPON_ADMIN_EMAILS_TO != '') {
        zen_mail('', SEND_EXTRA_DISCOUNT_COUPON_ADMIN_EMAILS_TO, SEND_EXTRA_DISCOUNT_COUPON_ADMIN_EMAILS_TO_SUBJECT . ' ' . $subject, $message, $from, $from, $html_msg, 'gv_mail_extra');
      }

The "DISCOUNT_COUPON" reference is incorrect. We took a guess at what the variable should be and changed the code to:

if (SEND_EXTRA_GV_ADMIN_EMAILS_TO_STATUS== '1' and SEND_EXTRA_GV_ADMIN_EMAILS_TO != '') {
        zen_mail('', SEND_EXTRA_GV_ADMIN_EMAILS_TO, SEND_EXTRA_GV_ADMIN_EMAILS_TO_SUBJECT . ' ' . $subject, $message, $from, $from, $html_msg, 'gv_mail_extra');
      }

and email copies are now being received.

The issue now is that there is a similar problem (we think) in line 87 and we cannot determine the appropriate replacement for the "DISCOUNT_COUPON" reference.

Anyone with a clue?

27 Dec 2013, 5:56 PM
#2
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Send Copy of Admin GV Emails Not Working

Lem3:

We have set up Gift Certificates in our cart and turned on "Send Copy of Admin GV Mail Emails To" in the email configuration panel. Testing by sending a few certificates showed no copies were sent. No copies show in the email archive.
We traced the problem to line 126 in gv_mail.php:

if (SEND_EXTRA_DISCOUNT_COUPON_ADMIN_EMAILS_TO_STATUS== '1' and SEND_EXTRA_DISCOUNT_COUPON_ADMIN_EMAILS_TO != '') {
zen_mail('', SEND_EXTRA_DISCOUNT_COUPON_ADMIN_EMAILS_TO, SEND_EXTRA_DISCOUNT_COUPON_ADMIN_EMAILS_TO_SUBJECT . ' ' . $subject, $message, $from, $from, $html_msg, 'gv_mail_extra');
}

> The "DISCOUNT_COUPON" reference is incorrect.  We took a guess at what the variable should be and changed the code to:
> ```
if (SEND_EXTRA_GV_ADMIN_EMAILS_TO_STATUS== '1' and SEND_EXTRA_GV_ADMIN_EMAILS_TO != '') {
        zen_mail('', SEND_EXTRA_GV_ADMIN_EMAILS_TO, SEND_EXTRA_GV_ADMIN_EMAILS_TO_SUBJECT . ' ' . $subject, $message, $from, $from, $html_msg, 'gv_mail_extra');
      }

and email copies are now being received.

The issue now is that there is a similar problem (we think) in line 87 and we cannot determine the appropriate replacement for the "DISCOUNT_COUPON" reference.

Anyone with a clue?

Okay,so looking at version 1.5.1, that particular variable SEND_EXTRA_DISCOUNT_COUPON_ADMIN_EMAILS_TO_STATUS is only used in the admin's/coupon_admin.php file. Furthermore there is/ or has come to be an option in the email configuration area that addresses both coupons and gv's.

Perhaps looking at/comparing the same files in a newer version might shed some light on the issue or upgrading the system?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...