Hi All - I'd like to send an additional email when a specific coupon code is used. I like to make sure my code is correct before implementing - this is a simple copy of the zen_mail line placed directly below the original, with an if statement and a hard-coded email address in /includes/classes/order.php:
if($coupon_code == "DISCOUNT4U")
{
zen_mail($this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer["[email protected]"], EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id, $email_order, STORE_NAME, EMAIL_FROM, $html_msg, 'checkout', $this->attachArray);
}
THANK YOU for any help! Ernie
Bookmarks