Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I would like to create an event registration workflow that look like this:
- Register for the event
- Select options that pertain to the event -- These options will represent different costs for the event - So the total price of the event will depend on what options a user selects
- Click the add registration to cart button
- Go through the checkout process and pay for the event.
I saw the following ideas that may work:
https://www.drupal.org/node/2704965
https://www.drupal.org/node/2659186
https://www.drupal.org/node/2559229
I would love some advice on how to implement this idea - Has anyone sucessfully done something like it? Any pointers for sending me in the right direction?
Thanks
Comments
Comment #2
gcbAdd fields to your registration type to represent your questions. Implement "hook_registration_commerce_calculate_price()" to set a price for the associated line item.