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

Discount Code that can apply to Cost Per Seat. #24

Open
kimwhite opened this issue Feb 8, 2024 · 2 comments
Open

Discount Code that can apply to Cost Per Seat. #24

kimwhite opened this issue Feb 8, 2024 · 2 comments

Comments

@kimwhite
Copy link

kimwhite commented Feb 8, 2024

Is your feature request related to a problem? Please describe.
Discount Codes will only work for the initial and billing price of level.

Describe the solution you'd like
Allow discount code to set a Cost Per Seat price when the level is a Group Leader Level.

Describe alternatives you've considered
Right now, I recommend building another Group Level with the discount and hiding it from the levels page.

@MaximilianoRicoTabo
Copy link
Contributor

@andrewlimaza
Copy link

While that gist may be a good starting point as a proof of concept, it's a "use at your own risk and requires a developer to help implement".

Some thoughts around this:

  • The discount code would add custom fields to it's page/accordion for a parent level that sets "cost per seat" if that option is enabled within the level settings. (i.e. Cost per seat = xxx, Pricing application = Initial, Initial and recurring, recurring only). Noting here we would most likely have to create a custom table (for discount code meta, or store it in options)?
  • If the price is included in the parent group account/level just don't show the option in the discount code.
  • We will most likely need to add logic to this Add On and necessary filters to adjust the pricing after the discount code is applied (I still have to look into this but based off the gist, it looks possible but how can we reduce the moving parts to this code even more?

Solving this would also open paths to adding discount code functionality to the Payment Plans Add On and possibly other third-party plugins that may do something similar (discount things outside of the default level attributes).

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

No branches or pull requests

3 participants