Results 1 to 4 of 4
  1. #1
    Join Date
    May 2009
    Posts
    4
    Plugin Contributions
    0

    Default send duplicate order email if coupon code matches

    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

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: send duplicate order email if coupon code matches

    Quote Originally Posted by erniejones View Post
    v1.3.8a
    You REALLY need to upgrade your site to a secure version IMMEDIATELY.
    .

    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.

  3. #3
    Join Date
    May 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: send duplicate order email if coupon code matches

    I keep telling myself that, but I'm scared...

    I'll review the upgrade forum to see if I can catch all the things that can go wrong.

    But - would my email code work? Thanks DrByte.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: send duplicate order email if coupon code matches

    No. You're using the wrong variables.
    .

    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. v151 Send email to address entered in promo code or coupon field
    By butterballz in forum Managing Customers and Orders
    Replies: 1
    Last Post: 1 Mar 2013, 01:03 AM
  2. v139h Duplicate Emails in Tools > Send Email > Customer
    By chrontronic in forum General Questions
    Replies: 1
    Last Post: 26 Mar 2012, 08:35 PM
  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. Replies: 4
    Last Post: 5 Jun 2009, 06:49 AM
  5. Send coupon code email to almost all customers
    By jgadbois in forum General Questions
    Replies: 4
    Last Post: 30 Jan 2009, 06:53 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR