Zen Cart Logo
Forums / General Questions / Order Confirmation contains Discount codes used on order

Order Confirmation contains Discount codes used on order

Locked

Views: 1,238

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
3 Mar 2010, 7:41 PM
#1
batjammin avatar

batjammin

New Zenner

Join Date:
Apr 2009
Posts:
30
Plugin Contributions:
0

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.

3 Mar 2010, 11:51 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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

4 Mar 2010, 2:44 AM
#3
batjammin avatar

batjammin

New Zenner

Join Date:
Apr 2009
Posts:
30
Plugin Contributions:
0

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 Mar 2010, 3:13 AM
#4
drbyte avatar

drbyte

Sensei

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

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:$this->output[] = array('title' => $this->title . ': '[B] . $this->coupon_code . ' :'[/B],change it to this:```
$this->output[] = array('title' => $this->title . ' :',

12 Mar 2010, 6:35 PM
#5
batjammin avatar

batjammin

New Zenner

Join Date:
Apr 2009
Posts:
30
Plugin Contributions:
0

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.

12 Mar 2010, 9:23 PM
#6
coolcarpartsonline avatar

coolcarpartsonline

Totally Zenned

Join Date:
Feb 2008
Posts:
1,386
Plugin Contributions:
0

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.