Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2009
    Posts
    1
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

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

 

 

Similar Threads

  1. v154 Auto review request After Sale
    By cyberfolli in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 21 Jan 2016, 04:14 PM
  2. v151 Q: Is it possible to disable a coupon code based on shipping method
    By kapsolas in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 8
    Last Post: 16 Mar 2014, 02:37 AM
  3. Email coupon code based on order history
    By Crunch in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 3
    Last Post: 6 Nov 2009, 05:04 PM
  4. auto fill coupon code when checking out
    By palletjackracer in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 0
    Last Post: 15 Dec 2008, 08:40 PM
  5. how can I code in a default coupon code into checkout page redeem, then auto-refresh?
    By lankeeyankee in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 1
    Last Post: 29 Nov 2008, 04:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg