We are creating an event registration for a multiple-day event. We have created price sets for event attendees to select from various accommodations such as private rooms, camping, and dorm room - on a daily or full event basis.

How can we display multiple price sets on a registration form, and allow for auto-calculation of the event registration feel?

CommentFileSizeAuthor
#4 grid.png25.4 KBcolemanw

Comments

brylie’s picture

Issue summary: View changes
colemanw’s picture

Hi Brylie how's it going?
This module doesn't understand Civi's "price sets" at all, so any prices or fees you've set up on the civi side will have to be re-created on the webform side.
To do so, enable the "event fee" field for each event on the form. By default it is a numeric input field, but you'll want to edit it and change the widget type to "select" or in your use-case "grid" would probably be a better choice. This would let you enter the multiple types of fees and have them multiplied by the number of days in attendance.

brylie’s picture

OK. We may be able to set up several event registration forms, for each type of registrant.

colemanw’s picture

StatusFileSize
new25.4 KB

A grid like this gets the logic right, but the presentation could be better.
I'd recommend writing a tiny js script that hides every row in the table except for 1, based on their answer to "age" and "preferred accomodation" fields in the form.

colemanw’s picture

PS - the way I did that was to enable "event fee" field, and then set it up as a webform grid.
In the rows I put age + accom as the label and the daily price as the key.
In the columns I put # of days and a multiplier as the key.
There's a minor inconvenience that no 2 rows can have the same key (so 2 rows can't both be worth $50) but you can get around it by having one be 50 and another be 50.0 and another be 50.00.

colemanw’s picture

Status: Active » Closed (won't fix)