Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improving coupon code queries #168

Conversation

kimcoleman
Copy link
Member

All Submissions:

Changes proposed in this Pull Request:

Updating all coupon code / discount code queries to reverse sort the order so it always gets the latest codes. Also adding filters to each module to allow a larger limit (but defaulting to 5,000 codes).

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you successfully run tests with your changes locally?

Changelog entry

  • ENHANCEMENT: Now showing the latest coupons or discount codes in select dropdown to help sites with a large number of codes.
  • ENHANCEMENT: Added swsales_pmpro_discount_code_limit filter.
  • ENHANCEMENT: Added swsales_edd_discount_code_limit filter.

@dparker1005 dparker1005 merged commit 22ac50a into strangerstudios:dev Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants