JoeReynolds wrote:How difficult would it be to change the code so that Discount "name" is included in the exported Excel file for orders?
I assume the discount name could be written to the oders table at te time the order was placed. Currely the only discount item in the orders excel export is the discount amount.
Any ideas about this would be appreciated.
You would have to modify the nop.services.exportimport.exportmanager (ExportManager.cs) and recompile.
check to see if adding a column header and
worksheet.Cells[row, col].Value = order.DiscountUsageHistory;
col++;
does what you're looking for; i'm not sure what the discountusagehistory contains;
I don't think adding a column to the table would be needed because
table dbo.DiscountUsageHistory contains the DiscountId and OrderId, and dbo.Discount has the name.
i believe orders can have multiple discounts applied, keep this inmind for whatever you're trying to do.