Skip to content

Code recipe for custom PMPro reporting to support multiple discount codes for a single sale #170

Open

Description

@kimcoleman

Is your feature request related to a problem? Please describe.
We sometimes have a few separate discount codes that apply for a single "sitewide sale" - for example when we ran our LTD we made custom discount codes for some proration.

We'd like to write a mega snippet that unhooks some default PMPro module reports and adds in custom reports to get this data from a group of discount code orders, not just the single discount code assigned to the sale.

Here are the filters we would unhook and create new reportss for:
https://github.com/strangerstudios/sitewide-sales/blob/dev/modules/ecommerce/pmpro/class-swsales-module-pmpro.php#L68-L77

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions