Custom Export Module
Please quote me to: Build a Custom Export Module
I need to export some data. I don’t mind if you modify one of the other export contributions already installed to achieve this. I also don’t mind if you can find an already written contribution to do this. The admin for this should be under the “reports” menu.
What I need is the ability to export & choose the fields I want to export. The fields I require are listed below:
Date of Order, Order Number, Model, Product Name, Qty, Price Paid, Discount, Shipping Paid (this can only appear once on each order, Unique Customer ID, customers_lastname, customers_firstname, customers_email_address, customers_gender, customers_dob, entry_company, entry_street_address, entry_postcode, entry_city, entry_state, entry_suburb, countries_name, shipping address lastname, shipping address firstname, shipping address company, shipping address street, shipping address postcode, shipping address, city, shipping address, state, shipping address, suburb, shipping address country, customers_telephone, customers_fax, Order Status (E.g pending, shipped, processing), Payment Status (paid, not paid), comments
What I would ideally like is a check box to select each of the fields & a select all button in the admin.
Each product sold should be on a separate line and show all details as listed above. What I mean by this is, if a customer has ordered 2 products, the information should appear on 2 lines (one line for one product).
When choosing what I want to export I want to be able to choose:
a range of order numbers - either 1-43 or 1,5,9,45,
or
custom dates
or
Drop down menu with some preset date ranges
1 week (Sunday to Saturday)
1 calendar month
1 Calendar Quarter (e.g. January, February, March Or April, May June)
I also want it to display a list of the last 5 downloads I downloaded. This should include when the file was downloaded and what was downloaded (i.e. the invoice numbers downloaded or the date range downloaded.