Hi there,
Is it possible to add fields that increase the price of the total? For example, i want to add a select dropdown where depending on the option selected, adds a specific value to the total price.
Thanks

Will Lawrence
Hi Will,
It is possible. The discount plug-in does something similar (adds a field to the booking form, which when matches a valid discount code, discounts an amount from the total).
The VAT extension doesn’t use a booking form field, but does demonstrate how you can alter the booking price: https://github.com/stephenharris/Event-Organiser-VAT
In short, you’d need to write some PHP code which filters the booking price (as demonstrated in the VAT Plug-in or discount codes plug-in) and alter its value based on the information store with the booking form (i.e. eo_get_booking_meta( $booking_id, 'meta_{form-field-id}');
where {form-field-id}
is the ID of your booking form.
You will probably want to (but it is not essential) add a JavaScript event to listen for the change in selected valued for your select field and update the total on the booking form itself (again, the VAT extension and discount codes demonstrate how to do this). This is purely aesthetic, it’s the PHP code that determines the amount the user is charged.

Stephen Harris