I need to create a new CSV report?

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.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #4306

    anchor201
    Expired Member
    Post count: 11

    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?

    #4308

    Alex Rollin
    Moderator
    Post count: 27815

    I can see there is a mention of discount in the export. I will ask the developers to comment on discount tracking.

    #4310

    picocodes
    Moderator
    Post count: 141

    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.

Viewing 3 posts - 1 through 3 (of 3 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket