Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Apr 2009
    Posts
    30
    Plugin Contributions
    0

    Default Order Confirmation contains Discount codes used on order

    Order Confirmation contains Discount codes used on order.

    Was told to use New Signup Discout Coupon #ID. This is already set to zero and the issue is with the EXISTING Customer order confirmation emails, not new signups. For example a long time customer orders a product and the admin uses a special Discount code available only to the site admin. The "secret" coupon code now shows up on the automatic email sent to a customer after the order is processed.

    Any help would be good. As of now I'm stuck with changing the numbers of uses to one use per customer and changing it when I need to use a coupon. This is not a long term solution.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Order Confirmation contains Discount codes used on order

    Try going to the Tools ... Developers Tool Kit ... and in the bottom input box enter the "secret code" and select Catalog and click SEARCH ...

    Is it by chance hard coded in a language file or one of the files building the email that goes out to the customer?

    Is this on both TEXT and HTML emails that go out?

    Note: the Discount Coupon set for new customers goes out on Create Account emails not on orders ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Apr 2009
    Posts
    30
    Plugin Contributions
    0

    Default Re: Order Confirmation contains Discount codes used on order

    A search came up with nothing.

    I dont know about hard coded I have never changed anything. Also it happens with all codes not just one single code. Whatever code you use shows up on the email. For example:
    Products
    ------------------------------------------------------
    1 x Calibration Solution (CPE007) = $2.50
    ------------------------------------------------------
    Sub-Total: $2.50
    Zone Rates (Shipping to US (1 Boxes)): $5.50
    Discount Coupon: uspc2 : -$0.38
    TX TAX 8.25%: $0.18
    Total: $7.80

    Text emails are the only ones I have sent.

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

    Default Re: Order Confirmation contains Discount codes used on order

    /includes/modules/order_total/ot_coupon.php
    somewhere around maybe line 79 you'll see something like this:
    Code:
          $this->output[] = array('title' => $this->title . ': ' . $this->coupon_code . ' :',
    change it to this:
    Code:
          $this->output[] = array('title' => $this->title . ' :',
    That will prevent ALL coupon codes from ever being displayed on future confirmation screens/emails and order history.
    .

    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.

  5. #5
    Join Date
    Apr 2009
    Posts
    30
    Plugin Contributions
    0

    Default Re: Order Confirmation contains Discount codes used on order

    This worked perfectly to remove all the codes. Thank you

    Now I need to know if you can add an IF statement to allow only particular codes.

  6. #6
    Join Date
    Feb 2008
    Posts
    1,336
    Plugin Contributions
    1

    Default Re: Order Confirmation contains Discount codes used on order

    You can look into the module for the loop that generate the $this->coupon_code and try to test your if statement.

 

 

Similar Threads

  1. v151 Extra order email when order contains certain products
    By Dave224 in forum Managing Customers and Orders
    Replies: 1
    Last Post: 28 Apr 2013, 03:33 PM
  2. Order Confirmation email show codes... using PayEasy mod
    By weber in forum Addon Payment Modules
    Replies: 6
    Last Post: 20 Sep 2011, 10:26 PM
  3. How to Hide Discount Code from order confirmation emails ?
    By Rony in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 9
    Last Post: 20 Sep 2010, 10:25 PM
  4. How do I Edit Order of Order Totals in Order Confirmation Email?
    By toussi in forum Managing Customers and Orders
    Replies: 1
    Last Post: 20 Mar 2009, 08:05 AM
  5. Access codes in Order Confirmation Email
    By mccawphoto in forum General Questions
    Replies: 1
    Last Post: 10 Feb 2009, 09:27 PM

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