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] Extend price options functionality #1185

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

[!!!][FEATURE] Extend price options 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 extended as following

  • Each price option has a "Title", a "Description" and a "Price"
  • Support for fe_group, start- and stop-time
  • Allow sorting of price options in event record

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

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

The registration model will be extended as following:

  • New field price where the final price is saved (Tab: Payment)
  • New field price_option, where the selected price option is saved (Tab: Payment)

The saveRegistration() will be extended as following:

  • Determine and save the price for the event. Either price field if no price option is given or the price of price_option if given
  • Save the selected price_option
  • Ensure only available/valid price options 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
@derhansen derhansen changed the title [!!!][FEATURE] Add price variant functionality [!!!][FEATURE] Extend price options functionality Aug 27, 2024
derhansen added a commit that referenced this issue Oct 1, 2024
…on price

* Price options now have a title and description field.
* Registrations now have a price and price option field
* If an event has price options, it is now required to submit a price options
  in the registration process.

Closes #1185
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