I want to add a vendor name field and an IBAN number when exporting orders to Excel,
How can I do that?
Thank you ,
It would require customization. Or, search the marketplace for 'export'; maybe there is a plugin that can do it.
Where is your IBAN Number? Is that a custom attribute of vendor? (Even a marketplace plugin may not support that)
new PropertyByName<Customer>("VendorId", p => p.VendorId),
Is there is anything else to do ?
Yes, you're right, that's all what you need to do
I want ExportOrdersToXlsx contains Product Name.
I'm trying to add a new field "Product Name" to \Nop430\Libraries\Nop.Services\ExportImport\ExportManager.cs
However, I encounter an error.
Here is the screenshot
Can anyone please help?
You can not do it that way
There is a setting where it will export the products within the orders in the following format
See Configuration > Setting > Order Settings
Export orders with products - set to true
Otherwise if you just want the product name you would need to loop through each OrderItem and get the Product Name then write the record to excel
See the code that is in