Hello everyone,
I’m working on a Drupal 10 site using the Registration, Commerce Registration, and Commerce Waitlist modules to manage activity registrations and payments. Here’s my scenario:
Currently, when no spots are available, the Commerce Waitlist module allows users to join a waitlist.
By default, the waitlist registration is added to the cart with a price of €0, and users can complete an order for €0.
When a spot becomes available, the price of the registration is updated, and the user is prompted to pay.
I want to change this behavior. Specifically, I want the following:
1- When a user joins a waitlist, the registration should be created, but it should not be added to the cart until a spot becomes available.
2- When a spot becomes available, the registration should automatically move to the cart with the original price, and the user can proceed to complete the order.
I’ve reviewed the commerce_registration_waitlist module and its integration, but I’m unsure how to prevent waitlist registrations from being added to the cart.
Question:
How can I modify the default behavior to achieve this? Should I use a hook, an Event Subscriber, or is there a better recommended approach?
Thank you in advance for your help and guidance!
Active
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.