Page 1 of 1

Invoice not showing Coupon or Email address change

Posted: Tue Nov 18, 2008 1:04 pm
by Mike718NY
The Invoice (Print Invoice) does not show Coupons. Is this right?

Also, I changed the email address in the Admin (People > Users) and
the old email still appears on the Invoice for a new order that I placed
using that new email address. Is this a bug?

Re: Invoice not showing Coupon or Email address change

Posted: Wed Nov 19, 2008 8:21 am
by mazhar
Hmm it seems that address contains the Email field that is populated at address creation but the edit address screens doesn't show any Email field so that customer can update the email information for the address. That's why you are getting the old email for new orders because the Email information for address doesn't change. The quick fix for this is to expose an Email field in for addresses in the manage address book page of customer. I applied the fix and attaching the modified file. This will made the Email field editing available at address level. Just extract it and place the extracted files in ConLib.
Please take backup of your existing control files

Re: Invoice not showing Coupon or Email address change

Posted: Mon Dec 01, 2008 3:47 am
by Jaz
Is there a fix so the coupon codes show up on the invoices? The only way to tell that the coupon code is applied to do the math and I don't think most of our customers are that patient.

Thanks,

Re: Invoice not showing Coupon or Email address change

Posted: Mon Dec 01, 2008 5:41 am
by mazhar
Locate the following statement in the GetProducts function of the Admin/Orders/Print/Invoices.aspx page

Code: Select all

if (item.OrderItemType == OrderItemType.Product)
and extend it to allow the coupons as well

Code: Select all

if (item.OrderItemType == OrderItemType.Product || item.OrderItemType == OrderItemType.Coupon)
This change will list the coupon information with the products information. If you want some separate section for the coupon or other information you can put some other gridview and filter the reaming order items according to your choice and bind them to the newly created grid.

Re: Invoice not showing Coupon or Email address change

Posted: Mon Dec 01, 2008 7:59 am
by Jaz
I guess I should have asked this before, but how about showing the quantity discounts, or sales discounts?

Thanks,

Re: Invoice not showing Coupon or Email address change

Posted: Mon Dec 01, 2008 8:11 am
by mazhar
The very same way, along with coupons modify the if statement and allow the discounts as well. For example as below

Code: Select all

if (item.OrderItemType == OrderItemType.Product || item.OrderItemType == OrderItemType.Coupon || item.OrderItemType == OrderItemType.Discount)