Forums / All Other Contributions/Addons / Auto Email to employee after sale based on coupon code?

Auto Email to employee after sale based on coupon code?

Locked

Started by james431987 on 11 Sep 2009, 11:05 AM · Views: 1,043

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
11 Sep 2009, 11:05 AM
#1
james431987 avatar

james431987

New Zenner

Join Date:
Sep 2009
Posts:
1
Plugin Contributions:
0

Auto Email to employee after sale based on coupon code?

Each employee is given a coupon code to give out to the world that drops the sale price by 350pounds. They are payed on commission and have requested to be notified when there coupon code has been used.

I'm looking for a way to automatically send an email to an employee every time a sale is made based on what coupon code was used. Can some one give me a ruff Idea of the php logic I'd need to implement for this?

Zen cart 1.3.8
no upgrades
no addons
no customized except a theme

11 Sep 2009, 11:48 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: Auto Email to employee after sale based on coupon code?

You could probably do something in /includes/classes/order.php in the send_order_email() method, by sending another email after the others are sent, depending on the value of $this->info['coupon_code]

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