Zen Cart Logo
Forums / Managing Customers and Orders / Remove the Discount Codes info on Invoice

Remove the Discount Codes info on Invoice

Locked

Views: 1,149

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
31 Mar 2008, 9:20 PM
#1
fetsy avatar

fetsy

New Zenner

Join Date:
Mar 2008
Posts:
4
Plugin Contributions:
0

Remove the Discount Codes info on Invoice

On the html invoice the discount code appears as a link to a popup window. Is there a way of removing this link?

The reason is that when I use the PDFOC, the invoice prints the link to the popup window, and the whole invoice gets pretty messy. I figured that the easiest way to omit this would be to remove the link, as it is pretty unnecessary.

There might be some other solution to fix this that I am not aware of?

Zen-Cart 1.3.8a

1 Apr 2008, 12:29 AM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,683
Plugin Contributions:
56

Re: Remove the Discount Codes info on Invoice

If you don't like this, edit the file includes/modules/order_total/ot_coupon.php, go to the function process() and delete the code which is appended to $this->title. A more sophisticated fix (which I am adding to the next version of Quantity Discounts) would involve checking the current page and printing the link if the current page is checkout_payment.

1 Apr 2008, 6:14 AM
#3
fetsy avatar

fetsy

New Zenner

Join Date:
Mar 2008
Posts:
4
Plugin Contributions:
0

Re: Remove the Discount Codes info on Invoice

I did as you described and deleted the code appended to $this->title in the function process () part. But I couldn't observe any changes on the html invoices. Will the changes only appear on new invoices created after the change?

1 Apr 2008, 9:02 AM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,683
Plugin Contributions:
56

Re: Remove the Discount Codes info on Invoice

Correct. To change existing invoices you would need to update your database.

1 Apr 2008, 7:19 PM
#5
fetsy avatar

fetsy

New Zenner

Join Date:
Mar 2008
Posts:
4
Plugin Contributions:
0

Re: Remove the Discount Codes info on Invoice

Ok. Now I've tested with the changes. But it does not remove the link to the popup window, hence the same link to the popup is printed in the PDFOC invoice. Isn't there a way of disabling this popup window?