This topic contains 2 replies, has 3 voices, and was last updated by picocodes 1 year, 7 months ago.
We have moved to a support ticketing system and our forums are now closed.
I need to create a new CSV report that will show the discount codes being used and by who.
How do I write these reports and add them to the reporting section?
I can see there is a mention of discount in the export. I will ask the developers to comment on discount tracking.
At the moment, you will have to manually query the database. Discounts are saved as a custom post type called ‘wpi_discount’.
You can use wpinv_get_all_discounts to fetch discounts. All the discount fields are stored as custom fields.
I’m setting a task to introduce discount reports in the future but for now, you will have to code your own based on the above details.
Enter your WordPress.com blog URL