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

[!!!][FEATURE] Add price variant functionality #1185

Open
derhansen opened this issue Jan 20, 2024 · 0 comments
Open

[!!!][FEATURE] Add price variant functionality #1185

derhansen opened this issue Jan 20, 2024 · 0 comments

Comments

@derhansen
Copy link
Owner

derhansen commented Jan 20, 2024

The current price option feature is not flexible enough to allow mutliple prices for an event. It is not possible to name the price options and it is currently always required to have a validity for the price option. The getters getActivePriceOptions() and getCurrentPrice() are specially crafted to return price options and the price based on the validity of a price option.

The price option functionality will therefore be deprecated and removed in version 8 of the extension

A new price variant functionality will be added as following:

  • Inline field in event record to support one or multiple price variants
  • Each price variant has a "Title", a "Description" and a "Price"
  • Support for fe_group, start- and stop-time
  • Allow sorting of price variants in event record

The event domain model will be extended/changed as following:

  • Getter and setter for price variants. Getter returns price variants sorted by sort order in backend
  • getActivePriceOptions() will be removed
  • Getter getCurrentPrice() which either returns the price field (if no price variant is defined) or the price of the lowest price variant.

The registration model will be extended as following:

  • New field price where the final price is saved
  • New field price_variant, where the selected price variant is saved

The saveRegistration() will be extended as following:

  • Determine and save the price for the event. Either price field if no price variant is given or the price of price_variant if given
  • Save the selected price_variant
  • Ensure only available/valid price variants can be saved
  • Add PSR-14 event to modify price before persistence
@derhansen derhansen added this to the 8.0.0 - TYPO3 v13 milestone Jan 20, 2024
@derhansen derhansen changed the title [!!!][FEATURE] Extend price option functionality [FEATURE] Add price variant functionality Jan 20, 2024
@derhansen derhansen changed the title [FEATURE] Add price variant functionality [!!!][FEATURE] Add price variant functionality Feb 19, 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

No branches or pull requests

1 participant